![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to write a script in UNIX to find a file if another file exists | mmdawg | Shell Programming and Scripting | 1 | 05-04-2008 10:40 PM |
| changing /cn@0:console file permissions | ErnieG | Security | 4 | 12-04-2007 08:39 AM |
| Logging all console activity to a file - how? | patwa | UNIX for Dummies Questions & Answers | 4 | 06-13-2007 10:09 PM |
| How do i access (mount, read & write) a floppy disk from the console, not being root? | kfaday | UNIX for Dummies Questions & Answers | 4 | 05-13-2005 11:17 AM |
| /dev/console file | malikabid | UNIX for Dummies Questions & Answers | 4 | 03-02-2005 02:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
To write to console and file
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|