The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
dialog menu script. please HELP claudlu Shell Programming and Scripting 2 05-04-2008 07:11 AM
html problem: get file name dialog exists? f33ldead Shell Programming and Scripting 0 02-25-2008 05:48 PM
perl progress bar dialog fed.linuxgossip Shell Programming and Scripting 4 09-18-2007 07:40 AM
dialog output dhinge UNIX for Dummies Questions & Answers 2 11-30-2006 10:20 AM
two computers - one modem Pennywize UNIX for Dummies Questions & Answers 3 11-27-2002 02:37 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #22  
Old 11-08-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by deaconf19 View Post
how do i check if it is 0.0?
$DISPLAY ?
You have to capture that when the user logs on.

Quote:
what is EOF?
It's a way of putting data to be used as stdin inline.

Code:
command <<tag
data
tag
I personally use EOF as the tag.
Reply With Quote
Forum Sponsor
  #23  
Old 11-08-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 105
i ran your command and this is what i got

01
tcgetattr: Inappropriate ioctl for device
ioctl I_FIND ttcompat: Inappropriate ioctl for device
Reply With Quote
  #24  
Old 11-08-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 105
rsh can not be a redirected command correct?
Reply With Quote
  #25  
Old 11-08-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by deaconf19 View Post
rsh can not be a redirected command correct?
Code:
$ echo "echo hello" | rsh somehost
tcgetattr: Invalid argument
ioctl I_PUSH ttcompat: No such device or address
It would seem so! I often redirect the output from rsh, so am surprised you can't do the input. You will have to do it as an argument.

Code:
rsh host "all those things I want to do"
By the way, what are you rsh'ing to and as who?
Reply With Quote
  #26  
Old 11-08-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 105
a binary file in the remote computers /h/test/bin directory.

this is how i would do it manually
from my local machine i open a terminal and type the following

telnet test004
user: joe
pass: xxx


once in i cd /h/test/bin
the i type setenv DISPLAY:0.0
once done i do ./Msg "hi"

then it will show a dialog box on that remote machines screen saying hi with an ok button to close it.

what i want to do is what it typed above but to multiple computers at once using that Msg program
Reply With Quote
  #27  
Old 11-08-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 105
then users are not root. so when i log in the terminal it looks like this

test004%
Reply With Quote
  #28  
Old 11-08-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 105
i figured it out. i was doing setenv DISPLAY:0.0 i needed to do setenv DISPLAY unix:0.0
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
export display, inappropriate ioctl for device

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:16 AM.


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

Content Relevant URLs by vBSEO 3.2.0