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 > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unix command for multifile program execution alokmishra8 Linux 0 02-01-2008 04:20 AM
command execution ?? zedex UNIX for Advanced & Expert Users 1 11-06-2007 05:26 PM
Capturing last command execution status in a script. videsh77 Shell Programming and Scripting 2 04-12-2007 01:19 PM
Status code of last command execution tipsy Shell Programming and Scripting 1 07-21-2006 01:14 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-09-2007
susinthaa susinthaa is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 3
Where we can get the logs for a command execution successfully?

Hi,

How to get the logs for successfully executing of a solaris command?
Where the logs will be stored?
How to know that the commands is executed successfully or not?

Thanks,
Susi.
  #2 (permalink)  
Old 07-09-2007
yarx yarx is offline
Registered User
  
 

Join Date: May 2005
Posts: 37
if you want to know the message from system or service, look the /var/adm or /var/log directorys for more information,.

but "commands is executed successfully or not?" ,you can check the exit status, if you use bash shell, you can type: echo $? if the result is 0 meaning successful, else will be had a problem.
  #3 (permalink)  
Old 07-09-2007
susinthaa susinthaa is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 3
logs for command.

Hi,

Thanks for your valuable information.
I want to know that whether the command execution is stored in any log files?
If we are working in any command, whether all events will be stored in any of the log files?

any ideas?

Thanks and Regards,
susi
  #4 (permalink)  
Old 07-09-2007
fredginting fredginting is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 21
Quote:
Originally Posted by yarx View Post
if you want to know the message from system or service, look the /var/adm or /var/log directorys for more information,.

but "commands is executed successfully or not?" ,you can check the exit status, if you use bash shell, you can type: echo $? if the result is 0 meaning successful, else will be had a problem.
thank's for your guide
and in directory /var/adm have messages too,contains about system.
  #5 (permalink)  
Old 07-10-2007
susinthaa susinthaa is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 3
Thanks.We can check the command execution only by using $?...Is it so?
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:50 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