Chrissirhc
Programmer
Hi,
Say in a script I put "mv /app/myfile.txt /app/myfile2.txt"
and myfile.txt doesn't exist. And I put that script in a crontab....
When the crontab runs it sends out an error saying mv: cannot access /app/myfile.txt
Is there a switch that I can use with "mv" so that it just ignores that? (i.e. if it can't find the file then it doesn't care).
Thanks,
Chris
Say in a script I put "mv /app/myfile.txt /app/myfile2.txt"
and myfile.txt doesn't exist. And I put that script in a crontab....
When the crontab runs it sends out an error saying mv: cannot access /app/myfile.txt
Is there a switch that I can use with "mv" so that it just ignores that? (i.e. if it can't find the file then it doesn't care).
Thanks,
Chris