- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Scripting question
Operating System - HP-UX
1748228
Members
4295
Online
108759
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО08-14-2003 04:04 PM
тАО08-14-2003 04:04 PM
Scripting question
I want to be able to pass a command under "ksh -m". Basically, I want to do this:
ksh -m
continue with process
How can I script this? Thanks.
ksh -m
continue with process
How can I script this? Thanks.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2003 04:15 PM
тАО08-14-2003 04:15 PM
Re: Scripting question
Hi Bobby:
# nohup my.sh &
See the man pages for 'nohup' for more information.
Regards!
...JRF...
# nohup my.sh &
See the man pages for 'nohup' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2003 11:40 PM
тАО08-14-2003 11:40 PM
Re: Scripting question
You can also use the job control features of the shell. See the "Jobs" section in "man ksh".
Basically you can start up a process from the current shell, eg:
# sleep 3600 # <-- Put your meaningful command here
Then hit ^Z to send a STOP signal to the job, you will see something like:
[1] + Stopped sleep 3600
And if you do a "ps" or a "jobs" command you will see it as stopped.
You can then issue a "bg" command to allow the job to continue in background. You can carry on doing other stuff while it's running.
Note that if a background job requires tty input, it will stop, and you will have to use "fg" to bring it to foreground. A background job can normally write tty output unless you have done a "stty tostop".
Hope this helps, like I said, it's all in the man pages.
-- Graham
Basically you can start up a process from the current shell, eg:
# sleep 3600 # <-- Put your meaningful command here
Then hit ^Z to send a STOP signal to the job, you will see something like:
[1] + Stopped sleep 3600
And if you do a "ps" or a "jobs" command you will see it as stopped.
You can then issue a "bg" command to allow the job to continue in background. You can carry on doing other stuff while it's running.
Note that if a background job requires tty input, it will stop, and you will have to use "fg" to bring it to foreground. A background job can normally write tty output unless you have done a "stty tostop".
Hope this helps, like I said, it's all in the man pages.
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2003 02:40 AM
тАО08-15-2003 02:40 AM
Re: Scripting question
Can you give me some more detail, do you want to run an sql file or what?
Dave
Dave
why do i do this to myself
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP