in reply to Re: Strange system call failure in OS X
in thread Strange system call failure in OS X
eval { $result = qx(scutil --set LocalHostName $name) };
Read the "Safe Pipe Opens" section of perlipc for a secure replacement for `...`.
The shell problem is also present in the single argument versions of system and exec, so make sure to use the multi-argument versions, which don't have this problem.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Strange system call failure in OS X
by karlgoethebier (Abbot) on Feb 16, 2013 at 19:19 UTC |