Hello,
I am trying to convert a shell script to perl because I need to do some
binary math, and I want to add more flexibility in general. I'm a bit new
to perl, but here is my question (don't laugh).
I am trying to execute an external process (in this case dialog). Dialog
displays a menu to the user and will output there selection via stdout or
stderr. I want to take what the system call to dialog will pass to stdout
or stderr and assign it to a string. Here is what I am trying:
$selection="dialog --backtitle \"$title\" " .
" --clear --menu ".
" \"Main Menu:\" 15 50 8 " .
" \"New\" \"Created a new Virtual account\" " .
" \"Edit\" \"Modify an existing virtual account\" " .
" \"Del\" \"Remove an existing account\" ";
$tmp = system $selection;
return $tmp;
All this does is return the exit status of the program. How can I get it to
return what dialog will pass to stdout?
--
Kind Regards
Tim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]