Search Results

Search: Posts Made By: bheemsen
14,617
Posted By bheemsen
Thanks to sb008, Franklin52, Perderabo, roopla...
Thanks to sb008, Franklin52, Perderabo, roopla and Flying_Meat for responding to my post.

This problem is solved. I forgot to set $1 to a variable and that worked. Also, I forgot to mention that...
14,617
Posted By bheemsen
Please see my replies below: Reply to...
Please see my replies below:

Reply to [MA]Flying_Meat:

Your guess is my guess. Somehow the cron entry is taking the parmeter 2 as redirection (to /dev/null). Actually I tested with assigning...
14,617
Posted By bheemsen
Hi roopla and sb008, As I said earlier,...
Hi roopla and sb008,

As I said earlier, there was no problem in the script. I could run it successfully as a standalone script.

Here is my complete script:...
14,617
Posted By bheemsen
When I run the script from command prompt, it...
When I run the script from command prompt, it runs fine.

MyScript.sh 2

Inside the script I am assigning $1 to a variable and using that to pass to a stored procedure.

I tried the following...
14,617
Posted By bheemsen
cron job problem, passing a parm
Hi,

I have an existing cron job like the following.

15 5 * * * /appl/scripts/MyScript.sh 2>/dev/null >/dev/null

and this works just fine.

Now I had to modify the script and now it...
Showing results 1 to 5 of 5

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