![]() |
script to ftp files
Hi all..
I am using below script to ftp a file to remote machien Code:
#!/bin/bash |
run:
Code:
{yourscript} >> output.log |
Quote:
Code:
myscript.sh | tee log.txtCode:
myscript.sh > log.txt 2>&1 |
N.B. '>' will overwrite log file, while '>>' will append.
|
Quote:
|
Quote:
|
Thanks for all of your reply...
But the script that I have shown here is just a part of my script. There are lot of lines that are above and below the script. So I cannot try ./script.sh >> logfiles OR ./script.sh | tee -a logfile Is it possible to log the output by writing some code inside the script itself ? Thanks once again... |
Quote:
Code:
ftp -nv << EOF >> ftp.log 2>&1 |
| All times are GMT -5. The time now is 01:26 PM. |