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
03-06-2004 07:02 AM
03-06-2004 07:02 AM
I'm writing a complex script that will initiate several at jobs, among other things. The at jobs are getting initiated properly, but there is a problem inside the at job. The at job connects to another machine to get some information and then needs to continue processing. The problem is that when it connects to the other machine (ssh, remsh, whaterver) and exits the at job also exits with (sh: Terminated) instead of continuing to process. Here is a small example of the at job:
VARIABLE=$(ssh server "COMMANDS")
[ $VARIABLE = STRING ] && COMMAND
The problem is that it finishes line 1 and exits when the shell used to connect to the remote machine exits. It never gets to line 2.
This seems like normal at behavior. Is there any way to change this behavior? This would be too messy to contain separate files and due to the way the process flows it needs to make this connection first.
Any help is appreciated. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2004 07:15 AM
03-06-2004 07:15 AM
Re: at job
one thing, you want to check is the paths to commands inside the script. At does not supplay many environment variables. If the script does not find ssh, it aborts.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2004 10:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2004 01:00 PM
03-07-2004 01:00 PM
Re: at job
-t on ssh worked. After reading the man page for ssh I can see how this would make sense. For kicks I tried to get remsh to work and found that I could with a -n. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2004 10:47 PM
03-07-2004 10:47 PM
Re: at job
glad to hear, that it works now and thanks for the zero points.
Michael