Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why script not run?

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
Hello,
I have a simple script set to run at schedule time, the 1st command in the script is to kill the current process running if there is any, then the 2nd is to rerun it fresh. However, when I put this script to run as cron, it complains that not enough stack, and suggest a new number,

So, I increase the stack big enough per suggestion, it does not work either, some how, I come up with idea to divide the script into 2 seperate scripts:
- the first script is only to kill the current process if there is any.
- the 2nd script is to rerun it freshly

And this, I don't have any issue. Why?
I thought I already increase stack per suggestion, but it still does not like it.
Thanks
 
Post your script. It's hard to suggest changes based only on a description of what it's supposed to do.

 
Hi SamBones,
Here is the script

[blue]#!/bin/ksh
. /tossev/sources/.profile
pkill -f Parse_Alarm
/tossev/sources/bin/Restart_Allps[/blue]

Where "Parse_Alarm" is the process and "Restart_Allps" is another script to restart all related processes including "Parse_Alarm"

thanks
 
can I see the error mail/log?
change the first line to
#!/bin/ksh -x
can I see the mail/log?

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top