![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command not working | preethgideon | UNIX for Dummies Questions & Answers | 3 | 05-14-2008 11:56 AM |
| Sed command not working | shashi_kiran_v | UNIX for Dummies Questions & Answers | 9 | 11-15-2006 12:01 AM |
| cd command not working | er_aparna | Shell Programming and Scripting | 7 | 07-08-2006 01:38 AM |
| cp command not working | groundlevel | UNIX for Dummies Questions & Answers | 7 | 03-22-2006 01:48 PM |
| last command not working | antalexi | SUN Solaris | 3 | 08-04-2005 10:22 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
why is this command not working?
Hi all,
Am trying to figure out a way to display error in the boot script... i tried , command 2>/dev/msglog but that is not enough for me. so i tried using this exec < /dev/console > /dev/console 2>&1 But it doesnt work at all... can anyone tell me if am making a mistake in the syntax? this is included in the script where the mounting of various files from the cdrom happens (am manipulating a live-cd ,opensolaris distro) Thanks |
|
||||
|
I think there could be no. of reason.
1. Don't try to write in /dev Try command 2>/tmp/msglog 2. Don't give 2 Try command >/tmp/msglog 3. Write a script and very first line give set -x then execute as script >/tmp/msglog 2>&1 Best of luck Sumit |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|