Thread: Executing 'alias' Linux shell command from C

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    6

    Executing 'alias' Linux shell command from C

    Hi, I was wondering how to execute Linux shell commands, like 'alias,' from a C program. I understand how to fork and use execl with commands like 'ls' and 'grep', but I cannot find the proper path for alias (thus, not being able to use execl). Any help would be greatly appreciated. Thanks.

    EDIT:
    Figured it out. Thanks everyone.
    Last edited by lan_zer0; 10-03-2007 at 12:56 PM. Reason: Question Answered

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII/ANSI in Linux Shell
    By JupiterV2 in forum Linux Programming
    Replies: 5
    Last Post: 10-12-2007, 02:38 PM
  2. command line alias remove for linux
    By iain in forum Tech Board
    Replies: 6
    Last Post: 11-22-2004, 01:39 PM
  3. Linux Shell and mp3
    By afreedboy in forum Linux Programming
    Replies: 2
    Last Post: 06-24-2004, 12:08 PM
  4. 3 linux shell environments
    By SpEkTrE in forum Linux Programming
    Replies: 3
    Last Post: 10-21-2003, 02:26 PM
  5. how to set a function to an alias in C shell
    By xstone in forum Tech Board
    Replies: 1
    Last Post: 09-29-2001, 03:41 PM