"system()" system call 
Author Message
 "system()" system call

Hi everyone,

I'm writing a program in which I use the "system" system call.
(We use 4.3BSD)

I use it like this

extern int system();
int err;

err=system("mail -s subject user < file");

When I compile and run this program (of course this is not the
complete program) it executes the call perfectly but also
generates the error message :

Unknown command: "################################################"

What does this mean and does anyone know how to solve this ?
Normally it is no problem because it works OK but I want to use
the program in CRON and I don't want this message to appear every
15 minutes or so on the console.

Who can help me ?

Thanks,

--

NIKHEF-H (National Institute for Nuclear and High Energy Physics)   Amsterdam
-----------------------------------------------------------------------------
-- Workers of the world arise, you have nothing to loose but your chairs ! --



Sun, 17 Jan 1993 11:09:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. directing unix system call "system"s output

2. Q: Return-values of system("...") calls

3. C++ "system" call

4. Running system calls "silently"

5. "system" could not be found

6. where to get namespace "System.Configuration"?

7. q: reading wmi produces "System.UnauthorizedAccessException"

8. "System.Resources.MissingManifestResourceException" in mscorlib.dll

9. system("D:"); doesnt work

10. "System" function problem in ANSI-C

11. "system()" library fn problem

12. function "system"

 

 
Powered by phpBB® Forum Software