Hi Era,
Thanks for the reply.
As per your reply , should i use the following code to trace the execution of commands:
ssh username@server 'find source_dir -name "*.txt" | xargs -n 1000 -i {} mv {} destdir'
1>>$filename 2>>$filename &&
echo "Success" || mailx -s "fail"
you@example.net
$filename is present on my local server , will the above code be able to trace the messages. Else please suggest the other variant of the code to track the exact error message.The log file should be present on the local server.
Thanks for your understanding