This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
unix:osx:rdesktop_script [2010/03/05 02:51] ben |
unix:osx:rdesktop_script [2010/03/05 02:55] (current) ben |
||
|---|---|---|---|
| Line 31: | Line 31: | ||
| pass=$(echo $passline|grep -e ^password:) | pass=$(echo $passline|grep -e ^password:) | ||
| - | #If the last command was NOT successful (security outputs the password as stderr!) | + | #Depending on the success of the last command, we either output an error, or |
| - | #then get the password via a cut and the account name via a grep and cut | + | #get the password via a cut and the account name via a grep and cut |
| if (( $? )) | if (( $? )) | ||
| then | then | ||