Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: C routine to run Unix commands

Re: C routine to run Unix commands

From: Tom Zamani <tomz_at_redflex.com.au>
Date: 2000/05/18
Message-ID: <8fvhcn$qh3$1@perki.connect.com.au>#1/1

#include <stdio.h>
#include <stdlib.h>

int c_ExecuteShellCommand(char *sCommand) {
  system(sCommand);
}

/*
void main(void)
{
  int nReturn;

  nReturn = c_ExecuteShellCommand("ls -l"); }
*/

Tom

John Dunn <John.Dunn_at_care4free.net> wrote in message news:8funod$1qc$1_at_lure.pipex.net...
> Does any one have an external C procedure that runs Unix commands?
>
> I have tried writing one that calls "system", but it does not seem to
 work.
>
> John
>
> --------------------------------------------------------------------------
 --
> ----------------
> Get Paid to Surf The Net - I Do
>
> http://www.abts95.ukgateway.net/index.html
>
>
Received on Thu May 18 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US