Thanks for the suggestions.

However, the basic question was, will ND allow the Java code for a  Page to
**start a new process**, since that is what exec(..) does. From my
understanding of ND architecture, it is highly unlikely.

It was only later that I learned what the shell script was supposed to do -
send a file by ftp to another site. In that case, there is no need to take
such a round route. A piece of Java code  should be able to do that.

Does anybody have a sample code which does that or something similar? That
would help us a lot.

Thanks,

Aby

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, April 26, 1999 1:34 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [ND] Running exec(..) inside CP
> 
> If running under Unix, make sure that  execute permissions are given to
> the
> owner/group of the NetD VM processes (if the owner/group of C executable
> is
> different from the owner/group of NetD processes).
> If absolute path of the C executable is not used in System.execute, then
> make sure that the environment variable PATH includes the path for
> the C executable .
> These are very basic but easy to miss kind of things.
> 
> 
> "James Law" <[EMAIL PROTECTED]> wrote:
> >If you are trying to run this code under NT, you will need
> Netdynamcs>service to run as
> >a Logged in username. (This happened to me when i tried to open a file on
> a
> >remote file system)
> >go to control panels/services/ startup
> >
> >
> >
> >Mathew, Aby wrote in message
> ><[EMAIL PROTECTED]>...
> >Here is a problem a friend of mine is having. I can vaguely imagine Hell
> >breaking loose when somebody asks ND-CP to do exec(..), which involves
> >creating a new process.
> >
> >Is the answer IMPOSSIBLE or can somebody think of some way to cajole ND ?
> >
> >Even JNI would be helpless since the C program is calling a Shell script.
> >
> >Any way out, O Unix experts? Have the ND Page write something to a port
> >which will be listened to by a daemon? (I am blabbering)
> >
> >
> >Thanks,
> >
> >Aby
> 
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to