Search Results

Search: Posts Made By: Dejavu20
26,877
Posted By Dejavu20
Thanks Methyl, The script is now working through...
Thanks Methyl, The script is now working through cron.
the issue was with the permissions on the script. After providing permissions- chmod 755 the issue got resolved.
26,877
Posted By Dejavu20
Hi Methyl, I tested the script with contents...
Hi Methyl,
I tested the script with contents as mentioned by you but that did'nt work through cron job.

In order to test if the issue is related to wrong scripting ode, I created the...
26,877
Posted By Dejavu20
Hi Methyl, Corona, PFB the details: ...
Hi Methyl, Corona,
PFB the details:


Output for ls -lad /home/myfolder/abc.sh :

-rw-rw-rw- 1 myname myname 296 Jul 4 19:06 /home/myname/abc.sh
Are you sure about the above?
Output for...
26,877
Posted By Dejavu20
Thanks Methyl, I used the following command ...
Thanks Methyl,
I used the following command
*/5 * * * * /home/myfolder/abc.sh 2>&1 >/home/myfolder/abc.logfor croning the script and now a blank abc.log file is getting generated at the path...
26,877
Posted By Dejavu20
sorry to bother u again, but am new to shell...
sorry to bother u again, but am new to shell scripts & croning so would need more help from you:

the content of my script is :

#!/bin/sh
HOST='xxx.xx.xx.xx'
USER='xx'
PASSWD='xxx'...
26,877
Posted By Dejavu20
Dear Corona688, do you mean that if the...
Dear Corona688,
do you mean that if the location of my .sh file is
root -> home-> myfolder-> abc.sh
than i shd mention :
*/5 * * * * ./home/myfolder/abc.sh
Am i right?
26,877
Posted By Dejavu20
Shell script not getting called through cron job but executes fine manually.
Hi,
My shell script not getting called through cron job.
The same works fine when executed manually.

I tried to generate logs to find if the scripts has some errors related to path using...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 01:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy