Thread: invoke the execution of one c program from another

  1. #1
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342

    invoke the execution of one c program from another

    hello,
    I have to transfer one .c file form my machine to another remote machine without telnetting into it. I have managed to do so ,but I have to execute the same file ,again without telnetting into that machine.. Which means ,I have to execute the .c file I have transferred through my program on my machine..I have no clue on this..Please help

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    What platform are you doing this "remoting" on? Windows, Linux?

  3. #3
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    i am working on linux

  4. #4
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342

    Thumbs up solution

    hi all,
    I found out a procedure called system().. This allows us to execute shell commands from our C programs.. This does the job required..
    thanks anyway,

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. suspend execution of a program
    By majoub in forum C++ Programming
    Replies: 8
    Last Post: 07-28-2006, 06:34 AM
  2. execution of a C program
    By kris.c in forum C Programming
    Replies: 7
    Last Post: 07-27-2006, 11:14 AM
  3. How do you read gzip output from 'C' program?
    By brett in forum C Programming
    Replies: 5
    Last Post: 03-13-2006, 12:01 AM
  4. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM