Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xinit to a particular workspace with application

Status
Not open for further replies.

ernieah

Programmer
Oct 27, 2002
42
US
(1) What xinit command do I use,
(as command-line parameters)
on the same "line" as "xinit", in a
script, to start an x-term window in
a PARTICULAR workspace (for example
in workspace #6) - along with the
"application"\s that I want to run in
that window in that workspace?

Where, I presume, the xinit command would start
both the particular workspace (several) AND
window\s I want in that workspace, along with
the application\s (several) I want in
each window.

(I presume, of course, that I will have
to give my password LOGON (several times)
as a part of executing this "xinit" script.)

(2) Now I am using KDE and Red Hat Linux
as my home "starting point" workstation.
where KDE restores my six workspaces
(saved from when I logged off my last
session) soon after I logon.)

(3) Now, I continue by "picking some particular
workstation" (showing on my "home"
machine) by mousing into it. I then ssh
to a (BIG) AIX machine, and logon there.
I then get the BIG AIX machine prompt,
and "start" whatever "application"
I want in THAT window which, of course,
"shows" in the taht same window on
(on my "home machine").

(4) I then repeat (3), for each application that
I want to run.

(5) This manual "commanding" consumes
a lot ot time and effort - which I would like to do,
instead, from a script with SEVERAL xinit
and "ssh" command lines in it.

(6) I presume that my proposed "new" xinit
script would do BOTH the "ssh"-ing and
(after I enter my password several times)
start BOTH the workspacesAND the windows
in each workspace, AND the "application"
in each window.

(7) This script\s (and called scripts from within
them) on AIX? or on my "home" machine? or on BOTH?)
will save me the trouble of having to MANUALLY
"ssh" to the AIX machine (from my "home" machine),
SEVERAL times, once for each application I want to
start on the AIX machine. Instead, all I would have
to do is enter the password several times when
prompted to do so (after each "ssh" line is executed
from the script).

(8) The workspace "setup" that KDE offers to
"save", when I logoff, is helpful - in that it
restores ALL my workspaces and the windows in
them, but then I have to manually have to "start"
each applications via a command, or script, in each
of the "restored" windows in each of the
workspaces..

(9) My NEW (proposed) script would start the
workspaces on my "home" workstation, and the
desired windows in each of the workstations, and
the desired "appllcation" in each window.

(10) There would be NO NEED to have KDE "save"
my desktop setup, since my proposed new script
would "construct" all that (workspaces, windows
"ssh"-es, applications, etc.

(11) I think X Windows can do all this, I merely
have not, so far, been able to find HOW.

Thanks in advance for any help you can give me
with this.


End-of-memo: Best to you..from ernieah.
I don't sell books, or work for any
publisher or computer company.
 
From: ernieah, error-correction:

I realize, now, that instead of "xinit",
I should have used "xterm" in all
parts my question, above.

Thanks again to any prospective responder
who knows about X Windows.
 
(1) I still DON'T know how to get "xterm" to start a window in a particular (existing) WORSKPACE, and, simultaneously, start some application in that same window..

Hopefully with a single command-line, in a script. And does it require an ".rc" file, also, as well as some command line parameters, where the parameters are: the name of the application, an "id" of some kind for the workspace and an "id" for the window where the application is to execute?

(2) Anybody know how? Thanks..
 
Make a file called .xinitrc in your /home directory.

Put in the following (for kde):
Code:
exec xterm &
exec startkde

for gnome it will be:
Code:
exec xterm &
exec gnome-session

If you wanted add more applications, for example you would do something like this:
Code:
exec xterm &
exec xmms &
exec gkrellm &
exec gnome-session
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top