we're using sco openserver 5.05 and have an executable file in a shared directory that an NT server can see. How does NT or Windows execute this file? Can anyone help?
Is it a unix program or a windows program?
If it is a windows program then you execute it on your windows machine the same way as any other program.
The unix machine is giving you file services just like any other file server.
If it is a unix program the you would have to "remotely" execute it such that it runs on the unix machine. There are a number of ways of doing this and it depends on what other software you have available on the windows machines.
The classic utilities rsh or rcmd can remotely execute commands or programs on other machines, but these are inherintely (sp?) insecure. The ssh suite of utilities can remotely execute commands and are quite secure but they are not part of the stock sco distribution.
thanks for your response, Stan. it is a Unix program that i need to run on the Unix server. can you tell me a little more about the ways to do this, i'm a BBX Business Basic programmer and not a unix expert (hardly). a web server wiil send me files when orders are placed, i know they use SQL. i need to start my program when these files hit the Unix server.
ok, if i have this straight then the flow would be
1- client places order thru a web server
2- web server places that order in a file and transfers it to a directory on your unix box (ftp?)
3- once that file exists you want a process to start up on the unix box to do something with that file.
so you are looking for a way to initiate the process in step 3.
Three quick questions:
How large are the files that get transfered?
Are the files named something unique?
How quickly do they have to be dealt with?
The simplest way would be to have a shell script running from cron to check for the existence of the file(s) and if they exist, run the process. There are a couple of problems with this.
-What if the file is still in the process of being transfered? the directory entry will exist before the transfer is finished.
-does the process have to happen more than once a minute?
a cron job can only be scheduled every minute.
you understand the flow exactly. the files should be relatively small, they need to be processed within a few minutes, not sure yet about unique names.
i understand about using cron, but was hoping there was another way, ideally the application placing the order files in my unix directory would then be able to trigger the process. any more ideas?
Is the webserver at a constant ip?
can it initiate a http call?
if it can...you could
on the unix box
1- set up a cgi script in /var/scohttp/cgi-bin
2- have the cgi script check where the call is coming from and if it is the correct ip spawn the job that processes the order file.
on the webserver
1- transfer the order file
2- after transfer is complete initiate the http call to
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.