Hi guys,
i have a script named purgeErrors.ksh, when i execute this script i need to redirect the output to a log file in the same directory, how can i do that ??
-- Aditya
purgeErrors.ksh > logfile
are you new to the unix??
Suppose if i have a sequence of Sybase commands with print commands in them, how do i redirect them to log file ??
Eg :
echo "Print it 1"
isql -Uusername -Ppassword -Sserver <<-EOF
print "Print it 2"
EOF
Try:
echo "Print it 1"
isql -Uusername -Ppassword -Sserver > logfile <<-EOF
print "Print it 2"
EOF
1) It isn't working could anybody suggest any other answer ??
2) Also i have input queries while the script is running how can i redirect the entire standard output expect that input parameter queries for the script so that these user can see input parameter queries at the command line itself ??
--- Aditya