The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

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 08:56 AM
Sed command not working shashi_kiran_v UNIX for Dummies Questions & Answers 9 11-14-2006 08:01 PM
cd command not working er_aparna Shell Programming and Scripting 7 07-07-2006 10:38 PM
cp command not working groundlevel UNIX for Dummies Questions & Answers 7 03-22-2006 09:48 AM
last command not working antalexi SUN Solaris 3 08-04-2005 07:22 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2008
Registered User
 

Join Date: Jan 2008
Posts: 176
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-02-2008
Registered User
 

Join Date: Apr 2008
Posts: 19
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
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0