Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Is there any system call or library function using which we can execute a file and redirect its output to another file........Can i use execve family of functions for ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    15

    Question system calls/functions to execute a file within a program

    Hi,

    Is there any system call or library function using which we can execute a file and redirect its output to another file........Can i use execve family of functions for this purpose.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    I assume your file is an executable file, you can use system() sys.call too
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247

    yeah

    Quote Originally Posted by Lakshmipathi View Post
    I assume your file is an executable file, you can use system() sys.call too
    yeah it is.
    and see the popen();
    also

    cheers
    "Relationships are built on trust and communication"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...