- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- at and batch jobs
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
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
10-26-2001 06:01 AM
10-26-2001 06:01 AM
I have a typical problem in using at
and batch commands. I have a shell
scripts which takes various parameters
as input and I want to submit this
using at or batch. I though to use
cron, but it doesn't allow me to select
a queue. Thanx in adv.
for e.g.
$ at now + 1 minutes
The command failing to recognize the variables -a a, -b b etc.
Kris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 06:15 AM
10-26-2001 06:15 AM
Re: at and batch jobs
$ at now + 1 minutes
test.sh -a a -b b
where
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 06:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 06:17 AM
10-26-2001 06:17 AM
Re: at and batch jobs
How about using the
-f option to specify
the script file in the at
command.
at -f test.sh .....
or how about specifying
the options to the script
as the options to the
at command
at -q a ....
Or
do echo ""test.sh -options"" | at command
HTh
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 06:18 AM
10-26-2001 06:18 AM
Re: at and batch jobs
I think you will have better success with something like this:
at -f test1.sh now + 1 minutes
test1.sh then invokes test.sh -a a -b b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 07:20 AM
10-26-2001 07:20 AM
Re: at and batch jobs
The following command looks promising.
echo "test.sh -a a -b b"|at now + 1 minutes
In the result
$ at -d 1004109278.a
....
...
cd /opt/ORACLE/oclin/40/dev/aot/admiral
ulimit 4194303
umask 2
test.sh -a a -b b
Looks like it is submitting the job with parameters. Thanks again
Kris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 07:24 AM
10-26-2001 07:24 AM
Re: at and batch jobs
You may want to prefix the script filename with ./ in order for it to work 100%.
Rgds, Robin