Professional Web Applications Themes

Some 'System Calls' was Capturing system call output value - PERL Beginners

On Friday, Nov 14, 2003, at 18:39 US/Pacific, Jerry Rocteur wrote: > Beautiful drieux, what a y way to do a system call!! > > And I never knew about $host = hostname;.. What a neat trick.. > > Keep 'em comin... Wiggins is the one who deserves the point, since he was the one with the reference to Sys::Hostname, and when one sees such things one should just do the perldoc Sys::Hostname read the pod, copy and paste from the pod the call that one needs and move on to the next problem. ciao drieux ---...

  1. #1

    Default Some 'System Calls' was Re: Capturing system call output value


    On Friday, Nov 14, 2003, at 18:39 US/Pacific, Jerry Rocteur wrote:
    > Beautiful drieux, what a y way to do a system call!!
    >
    > And I never knew about $host = hostname;.. What a neat trick..
    >
    > Keep 'em comin...
    Wiggins is the one who deserves the point,
    since he was the one with the reference
    to Sys::Hostname, and when one sees such
    things one should just do the

    perldoc Sys::Hostname

    read the pod, copy and paste from the pod
    the call that one needs and move on to
    the next problem.

    ciao
    drieux

    ---

    Drieux Guest

  2. #2

    Default Re: Some 'System Calls' was Capturing system call output value

    Replaces the current process by running the given external command. If exec is given a single argument, that argument is taken as a line that is subject to shell expansion before being executed. If multiple arguments are given, the second and subsequent arguments are passed as parameters to command with no shell expansion. If the first argument is a two-element array, the first element is the command to be executed, and the second argument is used as the argv[0] value, which may show up in process listings. In MSDOS environments, the command is executed in a subshell; otherwise, one of the exec(2) system calls is used, so the running command may inherit some of the environment of the original program (including open file descriptors).
    addy john is offline Junior Member
    Join Date
    May 2011
    Posts
    2

Similar Threads

  1. Zip & unzip using system calls
    By MAR in forum PHP Development
    Replies: 3
    Last Post: April 25th, 10:25 AM
  2. Capturing system call output value
    By Wiggins D Anconia in forum PERL Beginners
    Replies: 6
    Last Post: November 17th, 03:54 AM
  3. system alert for phone calls?
    By MotherScratcher in forum Mac Networking
    Replies: 0
    Last Post: August 5th, 06:51 PM
  4. Finding system data with system calls.
    By Dr. David Kirkby in forum AIX
    Replies: 2
    Last Post: July 25th, 02:46 PM
  5. Apache/Perl segfaulting on system calls
    By J. Gleixner in forum PERL Miscellaneous
    Replies: 2
    Last Post: July 7th, 03:42 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139