Hello everyone,
I have a little script:
#!/usr/bin/sh
ssh -l username hostname /usr/bin/cat /Logger/Logger.log > lam.out
What this one does is that it cat a file from the host "hostname" and append to the new file "lam.out" under the current host.
If I run this script normally, it is running fine without any problem.
If I set up a cron job for this script, then it does not run properly.
Anyone know what is wrong with this script?
PS. I have no problem with ssh.
I have a little script:
#!/usr/bin/sh
ssh -l username hostname /usr/bin/cat /Logger/Logger.log > lam.out
What this one does is that it cat a file from the host "hostname" and append to the new file "lam.out" under the current host.
If I run this script normally, it is running fine without any problem.
If I set up a cron job for this script, then it does not run properly.
Anyone know what is wrong with this script?
PS. I have no problem with ssh.