Register
It is currently Mon Sep 01, 2014 7:42 am

cant get a script to output to file


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Sun Jul 21, 2013 9:42 am   

Joined: Fri Jul 19, 2013 5:17 pm
Posts: 10
I've been playing with this script trying to get it to save to a file for further parsing. I have tried, >, >>, tee and make. All I get is an empty file. Any ideas??


curl http://website.com -s | w3m -dump -T text/html | tee /home/user/Desktop/file.txt


Top
 Profile  
 PostPosted: Sun Jul 21, 2013 8:17 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 666
Location: Des Moines, Iowa
Try this for the first part of the script........ break it down, test the parts... ;)

curl -s "http://api.cnbc.com/api/movers/movers.asp?chartType=both&rowCount=20&link=quote#"

The "-s" is in the wrong place, and the url works best if it's in quotes


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP