I use "scp" command in my shell script. How do I get the error log , if that command is not working.
This is how I am using it scp file username@servername:/specificdirectory/
|
feedback
|
|
If you encounter an error while running To get a more detailed log of what is happening, try running it with scp -v file username@servername:/specificdirectory/ You must also remember that path starting with scp file username@servername:specificdirectory/ | |||||||||
feedback
|
|
A good way to get debug output with
| ||||
|
feedback
|
|
Usually programs in unix environment writes errors to, well, standard error output. so you can execute your command like this:
| ||||
|
feedback
|