![]() |
Script Help Please
I am trying to grab a file and have it write to a text file using a cron job. I want each file grab to overwrite the previous one. please tell me if this script is correct...
#!/bin/sh #start cd /var/www/html/domain.com wget --quiet -O /var/www/html/domain.com/file.txt 'http://www.other_domain.com/file.php?username=******&password=**********' cat /var/www/html/domain.com/file_1.txt >> /var/www/html/domain.com/file_2.txt #end |
Looks good, except change >> to > otherwise it will just append to file_2.txt.
|
All times are GMT -7. The time now is 08:44 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123