Problem with running the "autorep" command via crontab
Hi,
The user "MadeInGermany" tried to help on the below post by saying "This has been asked before; see the links below.
Get your current LD_LIBRARY_PATH and redefine that in your ksh script!
"
Thanks for the help. but this did not help. And my post got locked. I can't reply on my previous post.
So, the following is the issue :
I have written a ksh script and I'ma using the following command in it:
The script works fine when executed manualy on the command prompt. But does not work when scheduled in crontab. I could see the following in the crontab log:
I then used the whole path of autorep which was /opt/CA/UnicenterAutoSysJM/autosys/bin/autorep instead of just autorep. And then I got the following error in the crontab log after running the script:
Can someone please advice how can I run the autorep command within a ksh script from crontab.
As adviced by the user "MadeInGermany", I added the following line in the beginning of my script, but no use
Doing 'man crontab' yields:
If you're using the 'autorep' as quoted above in cron by itself (not as part of a wrapper script), you'll need to escape the embedded '%':
If you're using a wrapper script, check your environmental settings and check this FAQ
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
I am trying to take backup of server. while running manually, script working successfully.
while running in crontab its showing
"/bin/sh: /webMethod6/CustomMonitoring/scripts/backupWebMethodsCodeBase.sh: No such file or directory"
code forbackupWebMethodsCodeBase.sh
#!/bin/ksh
#Purpose... (8 Replies)
I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank).
In a first approach I coded:
find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt
But this doesn't work. I got an error (under Ubuntu):
grep:... (5 Replies)
I was trying to edit the crontab file for root. I had saved off the existing file for later recovery. When I typed crontab -e to edit, the system returned "413" and the cursor stopped blinking.
Ctrl+c stopped that. I typed, in bash, "EDITOR=vi" (Enter). Then, "export EDITOR" (Enter). Then,... (2 Replies)
the script is in Perl... this is one part of it:
$command = "echo \"$text\" | /usr/bin/nail -s \"My $text1\" $ccstr$addstr";
system("$command") if length($bodytext)>1;
crontab runs the script and sends me notifications but i cant receive any mail that i wanted!
I'm using the complete path... (1 Reply)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi,
Grateful if you could advise how to schedule the AIX "topas" command in crontab? Below script works fine at shell prompt. But it does not run via crontab at an AIX Server.
Script: topas_run.sh
export top_file=/oracle/rman_scripts/"topas_run"_`date '+%m_%d_%y_%H_%M_%S'`".txt"
echo >>... (7 Replies)
Hi,
I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone.
And its not dumping core if we run the script using "/bin/sh" instead of "ksh"
Can some body please help me how to resolve this issue.
... (9 Replies)
My question is very strange.
I can run ls command on remote host using ssh successfully. but when i try to run /sbin/md5 command on remote host. it doesnt run and get back to me on command prompt.
md5 command is exist on remote host.
This is what i tried which ran successfully.
Query -... (1 Reply)
Hi All,
I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)