- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- at -f now
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:18 AM
02-05-2002 11:18 AM
From a mainframe, or manually, I call a script that
performs:
at -f /path/filename now
at -f /path/filename2 now
Filename executes, filename2 does not.
Executing the calling script manually, I see an at job and job id for both, but only filname executes.
I can manually execute filename2.
I think I need another set of eyes.
Thanks for any input.
dl
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:39 AM
02-05-2002 11:39 AM
Re: at -f now
I sourced in the .profile as suggested but still only one of the two actually runs.
Still got blinders on....
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:41 AM
02-05-2002 11:41 AM
Re: at -f now
To the script filename2 add this line near the top:
env |sort > /tmp/env4filename2
then try the "at" command again.
then do this from your command line:
env |sort > /tmp/env4me
then do a :
diff -w /tmp/env4me /tmp/env4filename2 | more
Path variables are the most important, but others might be necessary.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:42 AM
02-05-2002 11:42 AM
Re: at -f now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:52 AM
02-05-2002 11:52 AM
Re: at -f now
echo "Starting step1 for script2" >> $LOG
check return status maybe then echo success or failure.
if [ $? = 0 ]
then
echo "Step1 successful." >> $LOG
else
echo "Step1 failed". >> $LOG
fi
I hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 11:56 AM
02-05-2002 11:56 AM
Re: at -f now
I did not say source your .profile. That is almost always a bad idea unless you have all the interactive or tty stuff if'ed out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:04 PM
02-05-2002 12:04 PM
Re: at -f now
When you say filename2 doesn't run, do you mean the at job doesn't run? Or do you mean the at job does run but filename2 doesn't?
Check /var/adm/cron/log to verify the at job ran. You should see something like:
> CMD: 1012939331.a
> root 329 a Tue Feb 5 15:02:11 EST 2002
< root 329 a Tue Feb 5 15:02:11 EST 2002
Do you redirect the output from filename2? If not, do you get a mail message from "at" for filename2? If you do redirect the output, does the output file get created / updated?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 12:05 PM
02-05-2002 12:05 PM
Re: at -f now
at -f /../.. now.
I have hardcoded the entire path instead of using variables and still no execution.
I have enough checks and logging in the script being called to know it is not running or has not run.
Quite simply - (sure easy for you to say)
SCRIPT_AT performs
at -f /path_to/script_1 now
at -f /path_to/script_2 now
Issue both commands from the
command line and only script_1
runs.
Issue /path_to/sctipt_2 from the command line and it executes.
Bridle's getting tight....
d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 01:08 PM
02-05-2002 01:08 PM
Re: at -f now
The machine does not lie.
It show a job number amd time,
but I never saw the job running.
I put another catch to a log at the top of the script and found is is being called.
Now I need to debug why it dies before writing to any other log file when it runs standalone fine.
Thanks for all the input.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 02:02 PM
02-05-2002 02:02 PM
Re: at -f now
Do you have 'read' statements (from stdin) in your script? If so, and you are executing the script unconditionally (i.e. without testing whether or not it is interacive), you may get unexpected actions. Is this the case?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 02:19 PM
02-05-2002 02:19 PM
Re: at -f now
Nothing interactive. Thanks for the suggestion.
I am still stepping through each line of code to see where it may be exiting or failing when not run from the command line.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 04:06 PM
02-05-2002 04:06 PM
Re: at -f now
Hardcoded it in the script2 and all is well.
Thanks for all the input.
dl