I have a subroutine that uses useradd to create accounts
--
@cmd = ('useradd', '-m', $account);
my $result = system @cmd;
--
but when useradd fails, I need to stop it from sending the error message to
STDER.
Is it possible with system?
Thanks!
Tweet |
|
Kevin Spencer | at Jul 19, 2011 at 9:35 pm | ⇧ | ![]() |
Jim Gibson | at Jul 19, 2011 at 11:22 pm | ⇧ | ![]() |
Shlomi Fish | at Jul 20, 2011 at 9:43 am | ⇧ | ![]() |
Christian Walde | at Jul 20, 2011 at 7:46 am | ⇧ | ![]() |
C.DeRykus | at Jul 21, 2011 at 1:14 am | ⇧ | ![]() |
view | thread | post |
group | beginners |
categories | perl |
posted | Jul 19, '11 at 7:14p |
active | Jul 21, '11 at 1:14a |
posts | 6 |
users | 6 |
website | perl.org |
site design / logo © 2022 Grokbase