Some 'System Calls' was Capturing system call output value

Ask a Question related to PERL Beginners, Design and Development.

  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 sexy 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. Similar Questions and Discussions

    1. Zip & unzip using system calls
      I want to know how to do a system call inside a php code that zip & another code to unzip files .... :ph34r: help me plz ...
    2. Capturing system call output value
      perldoc -q 'output of a command' You want backticks instead, though there are better ways to come by the sysem name, and don't use $a.... ...
    3. system alert for phone calls?
      I have an internal modem which I don't currently use. I'm wondering if anyone knows of an OS X app that can alert you via screen or audio when...
    4. Finding system data with system calls.
      I'd like to obtain some data about a machine that runs AIX in a C program. Hence I don't want to use utilities at the command line, but system...
    5. Apache/Perl segfaulting on system calls
      Jeff wrote: Some code would be helpful. Also, check your error log to see if anything useful is in there.
  3. #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
    3

Posting Permissions

  • You may not post new threads
  • You may 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