hi homey thanks for the tip, i will try to incorperate that..
but have some queries
i did a bit of googling ("output redirection" helps!)
1)
ls -al > test.txt 2>&1 is the same as
ls -al > test.txt
The only difference is that the latter command will output only standard output (by default?) to the file... where the first outputs standard output and error output.. right?
2) 2>&1 after specifying the output redirection effectively means first redirects the standard output to a textfile, and then redirects the standard error to the same location as the standard output? Am i right?
Ok I try to incorperate with my scp statement but it doesn't work.. am i doing it wrongly..?
Quote:
scp -rp /home/user/db_files/filename.sql.gz user@127.0.0.1:/home/user/userdb_backup/ >> /home/user/cron/logs/dailybackup_log.txt 2>&1
|
I used >> because I want to concatanate the output to the file... i tried with > also ... but to no avail
but both gave a blank.. am i missing something?