- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: LIB$SPAWN
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
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
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
тАО12-19-2005 10:13 PM
тАО12-19-2005 10:13 PM
LIB$SPAWN
I am trying to execute one dcl script in a program using lib$spawn. It seems the program is not executing the script as I am not getting the required result. Is it possible to know, if the script has been successfully executed at DCL prompt or not ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 10:32 PM
тАО12-19-2005 10:32 PM
Re: LIB$SPAWN
do you check the system service status return value from the LIB$SPAWN call ?
Do you use the COMPLETION_STATUS parameter ? It will receive the exit status of the spawned subprocess.
You can also check with accounting, whether the subprocess has been created at all and what it's exit status is.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 10:44 PM
тАО12-19-2005 10:44 PM
Re: LIB$SPAWN
to capture the result, if any.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 10:51 PM
тАО12-19-2005 10:51 PM
Re: LIB$SPAWN
Can you write few lines how to get the completion status in a program, I am using the following line inside program
lib$spawn('@path:xx.com');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 10:56 PM
тАО12-19-2005 10:56 PM
Re: LIB$SPAWN
SYS$COMMON:[SYSHLP.EXAMPLES]ALPHA_LOGGER.C
status = LIB$SPAWN(0, &devnam, &devnam, &flags, 0, &pid, 0, 0,
subprocess_exit, 0);
if (status & SS$_NORMAL)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 11:33 PM
тАО12-19-2005 11:33 PM
Re: LIB$SPAWN
Now after putting status check, I could found that lib$spawn is returning not sucess value i.e. DCL script is not executing. Can u guide me why this is not executing ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 11:44 PM
тАО12-19-2005 11:44 PM
Re: LIB$SPAWN
Then use that value and translate it to the appropriate error message:
$ WRITE SYS$OUTPUT F$MESSAGE(value)
or
$ EXIT value
Make sure you use the correct radix (hex or decimal) depending on your printf format statement.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 11:45 PM
тАО12-19-2005 11:45 PM
Re: LIB$SPAWN
run/proc= program_name/output=err.txt program
I am getting 'no CLI present to perform function' error in the file err.txt
pls suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 11:53 PM
тАО12-19-2005 11:53 PM
Re: LIB$SPAWN
It should work, if you run your program straight in your process with: $ RUN PROGRAM
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2005 02:59 AM
тАО12-20-2005 02:59 AM
Re: LIB$SPAWN
When I am running the program using "RUN prog_name", it is executing my DCL script and is not releasing the terminal. But when I am putting in detached mode, it is not executing my DCL script.
Pls suggest