I know my question maybe eazy, but it realy cause a problem for me
I have a Perl script to run and get some output, I run this script using perl /moutaz/ciscolog/telnet.pl
I made another script as follow
/moutaz/ciscolog/script)
#!/bin/bash
perl /moutaz/ciscolog/telnet.pl
cp /moutaz/ciscolog/ciscolog /moutaz/ciscolog/ciscolog-$(date'+%H-%M')-$RANDOM
Then made crontab as follow:
15 * * * * /moutaz/ciscolog/script
The question:
-when apply command from shell it worked fine.
- from crontab it doesn't, only the cp command work.
what is the problem?