Hang when run command with /dev/console | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Hang when run command with /dev/console

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-30-2012
caspian caspian is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 30 January 2013, 5:26 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hang when run command with /dev/console

hi guys,

I don't know why I run this command:

echo a>/dev/console

It is not responsed from console and hang. If I run echo a>/dev/null, it is OK.
here it is the console file:

Code:
mcl1101 root#ls -ltr /dev/console
lrwxrwxrwx   1 root     other         30 Aug 18  2009 /dev/console -> ../devices/pseudo/cn@0:console
mcl1101 root#ls -ltr /devices/pseudo/cn@0:console
crw--w----   1 root     tty        0,  0 Dec 30 22:52 /devices/pseudo/cn@0:console

Can anyone help me?

thanks you a lot.
Br.

Moderator's Comments:
edit by bakunin: which part of the many "please use CODE-tags"-hints where so hard to understand that you chose to ignore them all?

Last edited by bakunin; 12-31-2012 at 03:07 AM..
Sponsored Links
    #2  
Old 12-31-2012
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 24 October 2014, 10:39 PM EDT
Location: NM
Posts: 10,251
Thanks: 283
Thanked 803 Times in 747 Posts
Did you mean to use /dev/tty? /dev/console is owned by another process, owned by root. What are you trying to do? Write a message on the console? if so, try the write command. It allows you to specify both a user and a specific device as the destination for a message.

Last edited by jim mcnamara; 12-31-2012 at 06:10 AM..
Sponsored Links
    #3  
Old 01-01-2013
caspian caspian is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 30 January 2013, 5:26 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
@ Jim mcnamara:

I think I meet the problem with console. in other devices such as: tty, tty0, It run OK.
Can i restart the /dev/console? or link the /dev/tty to the /dev/console?

thanks you a lot and happy new year.
br.
    #4  
Old 01-01-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 October 2014, 4:38 PM EDT
Location: Saskatchewan
Posts: 19,683
Thanks: 823
Thanked 3,352 Times in 3,139 Posts
You probably don't have access to write to /dev/console and generally have no reason to do so. What are you actually trying to do, and why?
Sponsored Links
    #5  
Old 01-01-2013
caspian caspian is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 30 January 2013, 5:26 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hi Corona688

Because in crontab file, it have a command:

Code:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/xpg4/bin/date >/dev/console 2>&1


I found that the /dev/console don't work. so that cron daemon is hang.

thanks you,
Br.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Capturing console (/dev/ttyS1) logs xerox Emergency UNIX and Linux Support 8 07-06-2012 10:54 AM
console /dev/console get image sreyes27 UNIX for Advanced & Expert Users 3 05-31-2009 10:02 AM
Logging to /dev/console mlalitha BSD 0 01-19-2009 11:32 PM
What is /dev/tty /dev/null and /dev/console civic2005 Solaris 12 01-04-2008 06:56 AM
/dev/console file malikabid UNIX for Dummies Questions & Answers 4 03-02-2005 01:59 PM



All times are GMT -4. The time now is 12:17 AM.