Hi,
How can i redirect the traces to both the console and to a file..
The way i was doing was:
/home/harika/harika/samp.exe
if [ $? -eq 0 ]; then
echo "executed the first exe.." >> /dev/console;/home/harika/harika/trace.txt
/home/harika/harika/memset.exe
echo "executed the second exe..." >> /dev/console;/home/harika/harika/trace.txt
else
echo " the first executable is not properly executed..." >> /dev/console;/home/harika/harika/trace.txt
fi
Its giving me error as permission denied.. I have logged as root user and even changed the permissions of the /dev/console to 777...
Regards,
Harika