Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* tcp/ip: notification via ftp
@ 1995-01-05 16:33 Cary Lewis
  1995-01-05 20:03 ` Ron Natalie
  1995-01-05 20:43 ` "Dan Wing"
  0 siblings, 2 replies; 3+ messages in thread
From: Cary Lewis @ 1995-01-05 16:33 UTC (permalink / raw)


I have the following problem:
 
An UNIX machine (SCO or DG/UX) connected via a TCP/IP link to a VAX
running VMX. These two machines will be transferring work files to each other.
 
FTP will be the transfer method.
 
I would like to devise a notification scheme whereby the arrival of a new
work file causes the machine to kick into action.
 
My experience is with UNIX, I have had some VMS exposure in the past. The
company I am interfacing to uses the VAX strictly as a 4GL application
environment. They are not familar with the low level VMS system routines.
 
I have already thought of the following schemes:
 
polling:	
 
periodically poll the spool directory. This is a simple but bad
solution in that it wastes CPU time on both machines.
 
run a remote program via rshell and rcmd:
 
This works quite well but rcmd and rshell can take a long time to execute.
In tests that I have done, it's taken up to 10 seconds for a simple
rshell command to run.
 
Use ftp to send a file to a named pipe:
 
This works well for the Unix side, but ftp will hang if no process is reading
the named pipe. Also I don't know if "named pipes (FIFOS)" exist
in VMS.
 
Can anyone suggest a notification scheme that consists of two processes
being blocked (one on each machine) that unblock when a file is transferred,
or deleted, or permissions are changed.
 
This must be a fairly common problem and I'm sure an elegant solution exists.
 
Any help will be appreciated.
 
Cary Lewis


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tcp/ip: notification via ftp
  1995-01-05 16:33 tcp/ip: notification via ftp Cary Lewis
@ 1995-01-05 20:03 ` Ron Natalie
  1995-01-05 20:43 ` "Dan Wing"
  1 sibling, 0 replies; 3+ messages in thread
From: Ron Natalie @ 1995-01-05 20:03 UTC (permalink / raw)


Cary Lewis (cslewis@delphi.com) wrote:
: run a remote program via rshell and rcmd:
:  
: This works quite well but rcmd and rshell can take a long time to execute.
: In tests that I have done, it's taken up to 10 seconds for a simple
: rshell command to run.

Don't understand this.  They work quite spritely on all the UNIX machines
here.  Must be some VMS problem.

: Can anyone suggest a notification scheme that consists of two processes
: being blocked (one on each machine) that unblock when a file is transferred,
: or deleted, or permissions are changed.

If you are using INETD, you can wrap the FTP process with another program
that checks for your special stuff after each client invocation.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tcp/ip: notification via ftp
  1995-01-05 16:33 tcp/ip: notification via ftp Cary Lewis
  1995-01-05 20:03 ` Ron Natalie
@ 1995-01-05 20:43 ` "Dan Wing"
  1 sibling, 0 replies; 3+ messages in thread
From: "Dan Wing" @ 1995-01-05 20:43 UTC (permalink / raw)


In article <xW0YwbV.cslewis@delphi.com>, Cary Lewis <cslewis@delphi.com> writes:
[...]
#run a remote program via rshell and rcmd:
# 
#This works quite well but rcmd and rshell can take a long time to execute.
#In tests that I have done, it's taken up to 10 seconds for a simple
#rshell command to run.

Add code like:

  $ IF F$MODE() .EQS. "OTHER" THEN EXIT

near the top of both the SYS$SYLOGIN (usually SYS$MANAGER:SYLOGIN.COM) and the
user's login file (usually SYS$LOGIN:LOGIN.COM).  That will bypass all the
(likely unnecessary stuff) and get the RSHELL command to complete a bit
faster.

#Use ftp to send a file to a named pipe:
# 
#This works well for the Unix side, but ftp will hang if no process is reading
#the named pipe. Also I don't know if "named pipes (FIFOS)" exist
#in VMS.

Nope.

#Can anyone suggest a notification scheme that consists of two processes
#being blocked (one on each machine) that unblock when a file is transferred,
#or deleted, or permissions are changed.
# 
#This must be a fairly common problem and I'm sure an elegant solution exists.

RSHELL is probably the best solution; you could simply do the FTP from the
Unix side, then a simple RSHELL to the VMS system which SUBMITs a batch job
that does work on the VMS system to move the file out of the spool area, or
whatever needs to be done -- that way the VMS system could do the work without
tying up the Unix side.

-Dan Wing, wing@tgv.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-01-05 20:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-05 16:33 tcp/ip: notification via ftp Cary Lewis
1995-01-05 20:03 ` Ron Natalie
1995-01-05 20:43 ` "Dan Wing"

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox