Hi Monk,
I want to copy a remote file to my local system through SCP. My remote file is in a path "/apps/wls/csam/output/response/a.xml"
For that i have login into the remote server with boatid and password.
It only allowed me to access any files in "/apps" folder.
But to access the "a.xml". I have to change the user with command "sudo -i -u wls"
then supply the password of wls user. Then only it allowed me to go into "/wls/csam/output/response/a.xml".
So please suggest me a suitable code to copy the a.xml to my local system for the above scenarios.
Regards,
Sanjay
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.