×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

xinit to a particular workspace with application

xinit to a particular workspace with application

xinit to a particular workspace with application

(OP)
(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.

RE: xinit to a particular workspace with application

(OP)
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.

RE: xinit to a particular workspace with application

(OP)
(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..

RE: xinit to a particular workspace with application

Workspace or display?
KDE has a system to launch programs in any workspace on startup without the need to launch the extra xterm windows (unless the apps are text based).

Look at: http://www.mepis.org/node/8038

[plug=shameless]
http://game-master.us/phpx-3.4.0/
[/plug]

RE: xinit to a particular workspace with application

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close