Computing.Net > Forums > Solaris > xterm -e

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

xterm -e

Reply to Message Icon

Original Message
Name: thimes
Date: September 10, 2006 at 09:06:00 Pacific
Subject: xterm -e
OS: Solaris 9
CPU/Ram: 1gb
Manufacturer/Model: Sun
Comment:

I am using fork to start a separate xterm instance and execute a login.

xterm -e "ssh name\@host"

I need to send more commands after the login.
Any one know how to do that?

PS - Net::SSH::Perl does do it.



Report Offensive Message For Removal


Response Number 1
Name: Kiko (by francistugagao)
Date: October 7, 2006 at 21:07:51 Pacific
Reply:

Try
xterm -e "ssh <some_host> <command>"

You can also run several commands separated by semicolon (;)

something like:
xterm -hold -e "ssh my_unix_host uname -a; uptime"



Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home



Results for: xterm -e

Solaris benefits over NT?
    Summary: This is fairly a large and sensitive subject. I suggest you look at http://www.unix-vs-nt.org/kirch/ for a comprehensive view of the subject. Anyway, these are some of the points in the article that s...
www.computing.net/answers/solaris/solaris-benefits-over-nt/230.html

Sending e-mail from a C program
    Summary: Hi, Does anyone know how to compose a e-mail message in a C program on Sun/Solaris and submit the e-mail to an e-mail account (e.g., mail.yahoo.com with know username/password) for delivery? My system...
www.computing.net/answers/solaris/sending-email-from-a-c-program/3360.html

question on
    Summary: here is something helpful from sun on the subject.....(a little long) I HOPE SUN DOES not COME AFTER ME....:-( To simply zero out the two files do the following: * In the Bourne or Korn shell: ...
www.computing.net/answers/solaris/question-on-/3539.html








Which MP3 player do you have?

iPod/iPhone
Zune
Something Else
None


View Results

Poll Finishes Today.
Discuss in The Lounge
Poll History






Data Recovery Software