Re: how to test for return code?
Date: Fri, 3 Oct 2003 18:00:57 -0400
On Fri, 03 Oct 2003 20:55:21 GMT, Jane
> My script has
> echo "get *.zip" | sftp userid@passwd >> ftplog
> How do I test if the sftp succeeded?
> I tried
> IS_ERR = `echo "get *.zip" | sftp userid@passwd >> ftplog`
> echo $IS_ERR
Don't you mean userid@hostname ?
Also, in any Bourne-like shell, when you assign a variable, you
shouldn't have spaces before or after the = sign.
scp userid@hostname:*.zip .
rsync -au user@hostname:*.zip .
Commander Spiral Pyjama Pseudo-Rhinocerous Feline Thingamajig Bill Marcum
Ozy and Millie Name Generator http://heifong.phase.org/omname.php
- Re: [Full-disclosure] reduction of brute force login attempts via SSHthrough iptables --
... Anyhow its no problem at all to modify, so if you dont like it, just dont use it. ... on a lame script like this as long as it WORKS and is not insecure. ... echo "~ sorting out ip by ip" ... # echo "not enough failed logins, probably no attack from: ...
- Ripping Tapes with Linux--How To
... the full script is located in the BASH ... My tape player is a portable style journalist's recorder from the ... The most irritating part of the recording process was setting the ... echo Starting de-noise procedure to file $TMP1 ...
- Re: Linux Backup with Modification Date Filter?
... I wrote a bash script that acts as a wrapper to rsnapshot which first ... generates a modification-date filter, ...
- Re: Command Script variable value lost during execution
... The value of RC_ver is numeric but ECHO would return it numeric or not... ... I checked ERRORLEVEL at the end of the script and it was 0 but again ... ECHO RoboCopy version xxx%RC_Ver%yyy ... CALL:GetRCVer RoboCopy.exe /Path ...
- Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?
... If you are running the dhclient then all you have to do is ... create the hooks script with YOUR CODE. ... DNS server with my wgets and then restart my firewall. ... You can put an echo statement on commands to show you what will happen ...