Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to send scp message of generated by verbose to a variable

    I am new to shell scripting
    I am trying to do scp in a shell script and I want to take message generated by verbose in a variable e.g.

    scp -vr abc@some_ip_of_other_machine:/some/path/to/file path_to_my_folder

    now I want to see full information generated by above command in some variable .
    how can I do it please help me.

  2. #2
    Linux Engineer khafa's Avatar
    Join Date
    Apr 2008
    Tokyo, Japan
    you can maybe redirect the output to a file and then check the file afterwards
    Linux and me it's a love story

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts