![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#29
|
|||
|
|||
|
But your intention is to log into the server as each of the users?
Imagine this.... 1. when the user logins in CDE or Gnome will run a login script of some kind (don't know what at the moment). This needs to capture the DISPLAY variable and put it somewhere. Code:
echo $DISPLAY >$HOME/.CURRENT_DISPLAY 3. the "TellMe" script will then pull out the DISPLAY variable value from where ever it was hidden and then call your /h/test/bin/Msg, eg TellMe: Code:
#!/bin/sh DISPLAY=`cat $HOME/.CURRENT_DISPLAY` export DISPLAY /h/test/bin/Msg $@ Code:
ssh -i my_identity person@server "\"Time for bed\" said Zeberdee" |
| Forum Sponsor | ||
|
|
|
#30
|
|||
|
|||
|
sweet that worked perfect thank you very much.
|
|
#31
|
|||
|
|||
|
sorry it did not work. the code for the display works. i created a login script and it creates the info and in there it is 0.0
the i created tellme. but when i run it. It tells me what the Msg program is for and how to use it. and the ssh i am not that familiar with i tried this with my user that is on all machines ssh -i sysadmin oc01@test004 "\"time for bed\" said Bob" ssh -i sysadmin oc01 "\"time for bed\" said Bob" none of them worked thanks though one more thing when i sub in "test" for the $@ the pop up dialog shows on my local screen |
|
#32
|
|||
|
|||
|
Did you
(a) set up a key pair without password using sshkeygen? (b) add an entry into $HOME/.ssh/authorized_keys with the public key and the name of the script to run (/some/path/TellMe) (c) pass the private key filename as the -i parameter? http://www.cit.gu.edu.au/~anthony/info/apps/ssh.hints Quote:
Last edited by porter; 11-09-2007 at 12:40 AM. |
|
#33
|
|||
|
|||
|
thanks but that is getting way to technical for what i want to do. if i figure it out i will post it here thanks for all your help.
|
|
#34
|
|||
|
|||
|
Ok here is a screen shot of me on the local client launching that application i am talking about.
![]() see how when insert the message then click enter it will display that pop up dialog. I now need to get that application to run and display the message locally on each machine. i am logged on as a normal user account. fyi |
|
#35
|
|||
|
|||
|
Quote:
(a) in order comply with the X security model. (b) to get the true DISPLAY variable that the user is using ... and in order to run as each user you should use an authorized_keys entry (a) to let you run something as that person (b) as those people wouldn't want you running any old command on their behalf. If you are thinking about using rsh then consider using ssh instead. |
|||
| Google The UNIX and Linux Forums |
| Tags |
| export display, inappropriate ioctl for device |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|