Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'wall' problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 882
Location: USA

PostPosted: Wed Sep 11, 2013 12:32 am    Post subject: 'wall' problems Reply with quote

With the latest updated a new version of wall was introduced. I use it in a couple of scripts, but the majority of my scripts have issues now.

Code:
wall some message

used to work just fine, but now it doesn't work anymore
Code:
20:28:27^cr0t@datastorm:~/.sabnzb/scripts > wall | echo foo
foo
wall: cannot get tty name: Inappropriate ioctl for device

works, however, never comes back to the command line. I tried a couple of things, but I am unable to work around it.

Any idea to get wall to work the way it used to work?
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9168

PostPosted: Wed Sep 11, 2013 2:00 am    Post subject: Reply with quote

Perhaps you should use wall correctly, which should work both with the old and new versions. To broadcast a message, write it into the stdin of wall. Your post shows that you redirected the output of wall into an echo foo.
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 882
Location: USA

PostPosted: Wed Sep 11, 2013 12:09 pm    Post subject: Reply with quote

Code:
08:07:33^cr0t@datastorm:~/.sabnzb/scripts > wall foo
wall: will not read foo - use stdin.
08:07:34^cr0t@datastorm:~/.sabnzb/scripts > echo foo | wall
                                                                               
Broadcast Message from cr0t@datastorm                                         
        (/dev/pts/0) at 8:07 ...                                               
                                                                               
foo                                                                           
                                                                               
08:08:44^cr0t@datastorm:~/.sabnzb/scripts > wall | echo foo
foo
wall: cannot get tty name: Inappropriate ioctl for device

_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum