- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- how to put a process to background
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
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
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
тАО09-16-2008 12:18 AM
тАО09-16-2008 12:18 AM
vms,want to run a programe and put to background.
for example
$run a.exe
how to put process was created by a.exe to background.
thanks first
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 12:39 AM
тАО09-16-2008 12:39 AM
Re: how to put a process to background
DCL allows one image at a time in the "foreground".
You have to run the program in the "background" from the beginning using the SPAWN command like
SPAWN/NOWAIT run a.exe
And see the ATTACH command to bring a spawned process into the "foreground".
And caveat for terminal interactions of spawned subprocesses: one should not simply spawn a screen-oriented editor this simple way (search for "KEPT EDIT" to see how).
See also the RUN /DETACHED command to run a program completely independent from the current process or login.
Search for DETACHED AND LOGINOUT in this forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 12:44 AM
тАО09-16-2008 12:44 AM
Solutionfirstly, I think you need to put "Unix-style thinking" a nit out of your mind.
$ run x.exe does _NOT_ create its own process, it run in the context of the process issuing it.
If you want it in a separate process, either
$ RUN/DETACH a.exe
( creates something comparable to a deamon process)
or
$ SPAWN some-comfile-which contains $ run a.exe
(creates a child process running the programm)
or
same with /NOWAIT qualifier added
(creates background process much in Unix style, except terminating the issuing process also "kills" the child)
or (preferably)
$ SUBMIT some-com-filewhich contains a.o. the RUN command.
This is more-or-less comparable to CRON job
SUBMIT has its own qualifiers which give a lot of control over the execution.
See $ HELP submit for specifics.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 02:53 AM
тАО09-16-2008 02:53 AM
Re: how to put a process to background
As Joe and Jan have stated, VMS is not *IX. The concepts behind process management are not the same.
If I had to guess, the most likely solution would be either a batch job (using the SUBMIT command) or a sub-process (using SPAWN/NOWAIT). Both are ordinary user operations requiring no additional privileges.
RUN/DETACH requires the DETACH privilege.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 03:00 AM
тАО09-16-2008 03:00 AM
Re: how to put a process to background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 08:20 AM
тАО09-16-2008 08:20 AM