The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2008
wrapster wrapster is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 193
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
  #2 (permalink)  
Old 05-02-2008
sumitc sumitc is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 25
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0