Path: utzoo!attcan!uunet!uvm-gen!tnl!saf From: saf@tnl.UUCP (friedman scott) Newsgroups: comp.unix.questions Subject: Using csh commands within the system() function call Keywords: csh sh system Message-ID: <239@tnl.UUCP> Date: 13 Jan 90 17:07:26 GMT Organization: The Northern Lights, Burlington VT Lines: 14 I wish to use a system command that works under csh but not under sh within a system() function call in a C program. The line looks something like this: system("command_that_generates_errors >& /dev/null"); When this runs, I get an error like: sh: /dev/null: bad number After looking up the system() call, I see that it will interpret the argument as a sh command. How do I get system() to interpret the argument as a csh command? Scott Friedman