Re: script and ssh

From: all mail refused (elvis_at_notatla.org.uk)
Date: 04/28/05


Date: 27 Apr 2005 23:29:58 GMT

On 2005-04-27, pac <pacmoit@tin.it> wrote:
> I have this script :
> but ... after the connection it wait a command and don't execute the

ssh 10.33.0.94 /bin/sh << END
for file in *.lp; do
[ -f $file ] && enscript -B -f LetterGothic@8.6/7.4 $file && rm -f $file
done
END

-- 
Elvis Notargiacomo  master AT barefaced DOT cheek
http://www.notatla.org.uk/goen/
    Elections must be close.  Simon Hughes MP (LibDem) (well, an assistant)
    has replied to my letter from 9 months ago.


Relevant Pages

  • [Full-Disclosure] Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit ... Connection closed by foreign host. ... think what we want to execute. ...
    (Full-Disclosure)
  • Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit we are ... Connection closed by foreign host. ... think what we want to execute. ...
    (Bugtraq)
  • CGIscript.net - csMailto.cgi - Remote Command Execution
    ... CGIscript.net - csMailto.cgi - Remote Command ... csMailto is a perl cgi formmail script developed by ... execute command on server and mail output to anyone ...
    (Bugtraq)
  • Re: ADODB Command memory leak
    ... _ConnectionPtr conn = NULL; ... // Execute statement. ... > My logic is such that the connection to the database is not maintained ... Create/Append command parameters ...
    (microsoft.public.data.ado)
  • Re: mysqli connections and oop
    ... need to do all processing in a script before I display a page that will ... this means that NO lasting connection is build ... > And here is the script that execute this ... Why does it not carry the mysqli connection? ...
    (comp.lang.php)

Loading