Operating System - HP-UX
1753359 Members
4755 Online
108792 Solutions
New Discussion

Re: scheduling the cron jobs with the use of operands

 
SOLVED
Go to solution
Stephan_
Regular Advisor

Re: scheduling the cron jobs with the use of operands

Is it me or is the attachment missing?

 

Thanks,

Stephan

How to assign points on this new forums --> Kudos - what, where, how, and why!
How to find the right forum --> New forum location by ITRC tree

"we wouldn't call it code, if we could read it ..."
Bill Hassell
Honored Contributor

Re: scheduling the cron jobs with the use of operands

Attachments don't seem to be working...the post is rejected without comment when I add an attachment.

 

Here is a link where you can download the file:

 

ftp://ftp.sourcedirect.com/contrib/mtr

 



Bill Hassell, sysadmin
Stephan_
Regular Advisor

Re: scheduling the cron jobs with the use of operands

Actually after some testing - it looks like only picture extensions are allowed to attach.

 

I will open a thread in the Feedback area about it.

 

Thanks,

Stephan

How to assign points on this new forums --> Kudos - what, where, how, and why!
How to find the right forum --> New forum location by ITRC tree

"we wouldn't call it code, if we could read it ..."
Steven E. Protter
Exalted Contributor

Re: scheduling the cron jobs with the use of operands

Shalom,

The best way to make a two script process have step two wait for step 1 to be done is to control it with a single script.

script.ksh
!#/usr/bin/ksh
echo "Steve was here"
rc=$?
if [ $rc -eq 0 ]
then
echo "Ready to run second process"
# insert second script name here, full path
else
echo "First step failed. Do not pass go, do not collect $200"
fi
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: scheduling the cron jobs with the use of operands

It turns out that only PC-safe files are allowed as attachments...that is, abc.txt is OK but abc is not. The Lithium engine 'adds' the extension .wht to a no-extension filename. So my mtr script is presented here as mtr.txt. Feel free to rename it to a more Unix-like filename.

 

(finding posted to the Community feedback page)



Bill Hassell, sysadmin