- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- How copy file form detached process?
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
11-02-2003 09:25 PM
11-02-2003 09:25 PM
Program runs in detach mode; I used LIB$SPAWN system routine but doen't work (exit status = %X7FF58005 I don't known).
I think this happens because deteched process has not a CLI (Command Language Interpreter) so it isn't possible execute a DCL command.
How can I do this?
Also, sometimes I have to send the file to another node using FTP.
Tahnks to all
Antoniov
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2003 10:03 PM
11-02-2003 10:03 PM
Re: How copy file form detached process?
Solution:
$! Create a command procedure that just has the RUN program command,
$! This procedure is the /INPUT for the RUN/DETACH command below.
$
$ create detach.com
$ RUN detach.exe
$!
$! Run loginout.exe as the image to create the detached process
$!
$ RUN/DETACH/ERROR=detach.err/OUTPUT=detach.out/INPUT=detach.com -
sys$system:loginout.exe
$!
The procedure to use with SYS$CREPRC is the same. Pass SYS$SYSTEM:LOGINOUT.EXE as the "image" and pass "detach.com" as the
"input".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 12:03 AM
11-03-2003 12:03 AM
Re: How copy file form detached process?
or the backup api (VMS V7.1 and later) - see
http://h71000.www7.hp.com/doc/731FINAL/4493/4493pro_001.html#4493_bu_chap
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 04:00 AM
11-03-2003 04:00 AM
Re: How copy file form detached process?
There was a recent discussion of callable FTP on comp.os.vms. There's more than one way to do it, depending on your TCP/IP stack.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 09:08 PM
11-03-2003 09:08 PM
Re: How copy file form detached process?
This example might be a little too complicated to fit your needs and you might simplify it but here is a C program you might use to replace your lib$spawn call to a sys$creprc call and also using the persona system calls.
If you also have Visual C++ on your PC computer, you might also give it a try.
http://h18000.www1.hp.com/support/asktima/communications/00A16286-AD980927-1C02A1.html
Hoping this can help you in your daily job.
Regards,
Philippe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 01:19 AM
11-04-2003 01:19 AM
Re: How copy file form detached process?
I hasn't tought to LOGINOUT that's a good idea but my example doesn't work.
You can see attachment.
Where do I wrong?
Bye
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 01:19 AM
11-04-2003 01:19 AM
Re: How copy file form detached process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 01:25 AM
11-04-2003 01:25 AM
Re: How copy file form detached process?
I've already user convert, mey be a good idea if I don't find a ready-to-use routine.
I never user backup routine, but some my oldest customer still works with OVMS 6.1 (yes the very old version) so, if is possible, I prefer use convert.
Thanks
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 01:30 AM
11-04-2003 01:30 AM
Re: How copy file form detached process?
I've found IO_PERFORM.C; now I'm reading it to understand as working then I'll compile to try.
I'll post the result.
Thanks
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 01:34 AM
11-04-2003 01:34 AM
Re: How copy file form detached process?
same answer to Craig.
To all
I believe does exist a simple solution but there nothing simple using computer.
Now I'm trying the prio .C examples.
Thanx
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 01:36 AM
11-04-2003 01:36 AM
Re: How copy file form detached process?
I think the problem is that you do a RUN PROCESS and not a simple RUN IMAGE in the command procedure you give as input to LOGINOUT.EXE. So you create a detached process with a CLI which again create a new detached process without the CLI....
If you have a look at my example the input file did only a simple RUN DETACHED.EXE(or whatever your application is called). That means you probably have to get the input from other source than in your RUN command.... Either by pointing a logical to your input file or similar and open it from within the application.
Hope this helped?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 01:57 AM
11-04-2003 01:57 AM
Re: How copy file form detached process?
$! Create a command procedure that just has the RUN program command,
$! This procedure is the /INPUT for the RUN/DETACH command below.
$
$ create detach.com
$ RUN detach.exe
$!
$! Run loginout.exe as the image to create the detached process
$!
$ RUN/DETACH/ERROR=detach.err/OUTPUT=detach.out/INPUT=detach.com -
sys$system:loginout.exe
$!
=================================
Now this is my example:
$! This command procedure call another DCL command in detach mode
$ SET VERIFY
$ RUN/DETA/INP=detach.com/OUT=DETACH.LOG-
SYS$SYSTEM:LOGINOUT
$ SET NOVERIFY
$ EXIT
------ Here DETACH.COM
$ RUN/INP=myfile.txt/OUT=detach1.LOG -
DETACHED.EXE
$ EXIT
===================================
Is seems similar.
If type @DETACH.COM process DETACHED.EXE stay alive and works fine.
If I type @TMP that call DETACH.COM, process DETACHED can't alive after TMP is closed; it seems DETACHED can live only if TMP lives.
Any help will be apprecied.
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:05 AM
11-04-2003 02:05 AM
Re: How copy file form detached process?
it's one BIG difference and that is I only run the image called detach.exe while you do a RUN/INPUT etc. Your command will create a new detached process, mine will not. See help RUN IMAGE and RUN PROCESS to see difference.
I've attached a working example in Fortran(sorry, But havn't got one in C). If you got Fortran installed just download the attached file to your system and do a @file and it will create the files, run it and show the output file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:15 AM
11-04-2003 02:15 AM
Re: How copy file form detached process?
I've discovered the solution.
Process DETACH.COM have to stay alive to keep alive DETACHED.EXE. If I add a WAIT 00:01:00 before exit, DETACHED stay alive.
Solution is very complicated, but now I can't solve better.
Bye
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 05:34 AM
11-04-2003 05:34 AM
Re: How copy file form detached process?
Problem solved!
Detach process use SYS$CREPRC system service to create a new detached subprocess that calls SYS$SYSTEM:LOGINOUT.EXE with appropriate parameters.
If somebody need source can post here!
Age,
you get me idea for use LOGINOUT.
Post a message and I will assign you 8 pts!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 06:15 AM