[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-admin
Subject: [HPADM] SUMMARY: Using the 'at' command
From: "Whittemore, Dale" <dale.whittemore () lmco ! com>
Date: 2003-11-19 15:09:33
[Download RAW message or body]
Thanks for the quick responses. I knew there had to be a way!
Thanks to Andy Cranston, Eef Hartman, David Antoch, Dan Johnson, Steve Illgen, \
Matthew Shaw. And any others whose email responses may stuck in transit along with \
all the spam. ;-)
Can be done several ways and were as follows
The easiest was to Create a script file with the command you want to run and use that \
with the 'at' command
echo "<script name> <param 1> <param 2> <param 3>" > <at script file>
at now < <at script file>
echo "/usr/local/bin/catchout testrun whittemo \
/usr/local/informix/db_oper/backup_restart" > bu_restart.sh at now | bu_restart.sh
Works like a champ and is in keeping with the KISS! (Keep it Stupid, Simple!) \
philosophy. ;-)
Thanks again
Dale A. Whittemore
Computer Systems Analyst, Senior
Lockheed Martin Enterprise Information Systems
Denver, Colorado
-----Original Message-----
From: hpux-admin-owner@DutchWorks.nl
[mailto:hpux-admin-owner@DutchWorks.nl]On Behalf Of Whittemore, Dale
Sent: Wednesday, November 19, 2003 7:10 AM
To: hpux-admin@DutchWorks.nl
Subject: [HPADM] Using the 'at' command
I want to run a script that requires three input parameters using 'at(1)'
I have tried:
at -f <script name> <param1> <param2> <param3> now
and
at now < <script name> <param1> <param2> <param3>
and both give me a "bad time specification" error.
It works fine in cron but I want to be able to have a user run it as needed.
cron entry looks like
00 18 * * 0 <script> <param1> <param2> <param3>
What I would like to know, after all that, is how do I get 'at' to work with scripts \
that require input parameters?
Thanks
Dale A. Whittemore
Computer Systems Analyst, Senior
Lockheed Martin Enterprise Information Systems
Denver, Colorado
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl
Archives: ftp.dutchworks.nl/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl
Archives: ftp.dutchworks.nl/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic