i get:q{if [ -e /.firstboot ] ; then echo 1 ; else echo 0 ; fi}
0 root@baseline-dc1:~#
The required output should be: 0 with NO new line, or carriage return, or space. somehow (i think) due to Net::SSH::Expect the prompt of the remote system is being appended to $stat hence i need to remove itIn reply to Re^2: One liner to test existance of a file
by kamal
in thread One liner to test existance of a file
by kamal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |