On 2007-01-19 12:01:29 -0800, Jonathan Leffler wrote:
> system("VAR=val /path/to/your/shell/script");
> 
> Well, that worked nicely for me with Korn Shell (and would work with Bourne
> Shell), but won't work with C shell (again).

On Unix-like systems the system() function always invokes /bin/sh, not
the user's login shell, so you don't have to worry about that.

        hp

-- 
   _  | Peter J. Holzer    | If I wanted to be "academically correct",
|_|_) | Sysadmin WSR       | I'd be programming in Java.
| |   | [EMAIL PROTECTED]      | I don't, and I'm not.
__/   | http://www.hjp.at/ |   -- Jesse Erlbaum on dbi-users

Attachment: pgpEbXPU2MIDN.pgp
Description: PGP signature

Reply via email to