Re: How can I execute linux commands on terminal and catch the results?

2008-10-04 Thread Daniel Nascimento
stage use no > warnings to turn them off around a bit of development test code. > -- > Andrew > > > > Daniel Nascimento wrote: > >> Hello Andrew, thanks for your answer. >> >> I tried to do this way: >> >> *#!/usr/bin/perl -w >> >> $res = qx

Re: How can I execute linux commands on terminal and catch the results?

2008-09-30 Thread Daniel Nascimento
t. It's described in perldoc > perlop > An example of it in use is > perl -e '$res=qx/date/;print $res;' > -- > Andrew > > Daniel Nascimento wrote: > >> Hello everyone! >> I'm learning perl and I need some help. >> >> I want to wr

How can I execute linux commands on terminal and catch the results?

2008-09-29 Thread Daniel Nascimento
Hello everyone! I'm learning perl and I need some help. I want to write a script that execute commands into a linux terminal and catch the results but I don't know how to do this. Example: I want a script try to create a new user, but it has to verify if the user is created before do it. If the u