MonkPaul has asked for the wisdom of the Perl Monks concerning the following question:
Im wondering if there is a way to store to results of this action into an array rather than a text file. The problem with the text file option is that it will be stored on a server that doesn't give the program write permission.
The code is:
system("/usr/local/mysql/bin/mysql -u anonymous -h my.database.org --e +xecute='show databases' | grep $temp_choice > dblist.txt") ;
cheers,
MonkPaul.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Storing system results in an array
by swampyankee (Parson) on Feb 17, 2006 at 18:01 UTC | |
|
Re: Storing system results in an array
by InfiniteSilence (Curate) on Feb 17, 2006 at 18:17 UTC | |
|
Re: Storing system results in an array
by Fletch (Bishop) on Feb 17, 2006 at 17:47 UTC | |
|
Re: Storing system results in an array
by xdg (Monsignor) on Feb 18, 2006 at 01:20 UTC |