hi,
I tried to execute the following command from the server im workin on,
cat /users/merc/ship/pars_rem.pl | ssh username:password@remoteserver
+"cat > /users/merc/tmp ; chmod 755 /users/sword/tmp ; /users/sword/tm
+p "
this is the error i get
Cannot write to a directory.
ksh: /users/merc: 0403-005 Cannot create the specified file.
ksh: /users/merc: 0403-006 Execute permission denied.
this is the path is on the server im workin on:
/users/merc/ship/pars_rem.pl
this path is on the remote server:
/users/merc/tmp
i gave full permission for the tmp directory
what i wanna do is copy pars_rem.pl script on the remote server, execute it against the log file present on the remote server, get the result on my server and delete my pars_rem.pl on the remote server.
can any body give me some suggestion?
Merc.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.