Switching workspaces thru shell scr.(Solaris)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Switching workspaces thru shell scr.(Solaris)
# 1  
Old 08-20-2007
Switching workspaces thru shell scr.(Solaris)

Using Solaris CDE environment and want to write a shell script (pref. Korn) which can:
  • Upon invokation opens a dtterm new window (no problems, here, i.e. on how to open one)
  • The new dtterm should be moved by the script to another workspace (consider no one changed the default Solaris naming standards, i.e. workspaces are named ONE, TWO, THREE, FOUR)
Initially, I am in workspace - ONE.

Would be really, really Smilie if anyone knows how to do this!??
# 2  
Old 08-20-2007
Someone just told me it's not possible, I hate that statement - since knowing UNIX - EVERYTHING is possible!! Smilie
# 3  
Old 08-20-2007
Maybe try with dtksh thought I have never tried to do anything like this with it. It could be worth having a look at the documenation.
# 4  
Old 08-24-2007
dtksh - I also don't know and tried the man - terribly complicated. Surely someone knows how to !! ??
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Switching server in UNIX via shell script (SSH )

Requirement: I am writing a shell script which take some file from say Server1 and I have to execute some command on Server2 then I have to manipulate the data and based on that I have to produce report. Problem:I can schedule the shell script on only one server (Server1 or Server2) So, In the... (3 Replies)
Discussion started by: raks2301
3 Replies

2. Shell Programming and Scripting

Not correct processing of “\ “ in names of dirs inside shell script (tar command - system backup scr

Hello, Recently, I've started with shell scripting, and decided to write a script for my system backup using tar. When I was dealing with tar execution inside shell script I found this, inside shell we have the following code: tar $TAR_PARAMS $ARCHIVE_FILE $EXCLUDE $BACKUP_STARTwith... (6 Replies)
Discussion started by: ilnar
6 Replies

3. Shell Programming and Scripting

problem switching to directory using shell script

Hi, I have an issue with switching to other directory through shell script. I have used cd /Music" but that doesn't help me. Then I have also tried using alias proj 'Music' alias then I get the error permission denied but i set the chmod 777 Music. I am using cShell for my... (3 Replies)
Discussion started by: baluk
3 Replies

4. Shell Programming and Scripting

Moving between workspaces

In Linux if Alt+Ctrl+KeyPad# is issued from a Bash shell, will a user then be able to invoke Firefox commands to Firefox from a Bash shell? Would one be able to issue another Alt+Ctrl+Key# to return to the initial workspace containing the Bash script? How do Alt+Ctrl+KeyPad# and Ctrl+F#... (0 Replies)
Discussion started by: slak0
0 Replies

5. UNIX for Dummies Questions & Answers

Switching user inside a shell script

Dear All, I want to switch a user inside a shell script.My current user say x and user y to whom i want to switch both have login on the same server,the one on which i want to execute my script on. "I want to do something like this su - y Password should be provided in the script itself.And... (6 Replies)
Discussion started by: navjotmannan
6 Replies

6. Solaris

NTFS under Solaris (switching from windows to Solaris server)

I want just to keep Solaris OS as my default OS . I have installed linux and windows as well but all my critical data is stored on NTFS partition so question is how to mount HDD with NTFS on Solaris (tried FUSE + NTFS-3g but that did`t worked for me system was down) And why Solaris does not... (2 Replies)
Discussion started by: microbot
2 Replies

7. Shell Programming and Scripting

switching to another user in shell script...

Hi, I have a shell script in which I need to switch to another user and execute some commands and then come back to the original user. To make it more clear - I have to log in as user root then 'su' to jag - execute a script called backup.sh and then logout and come back to root again.. ... (1 Reply)
Discussion started by: bjagadeesh
1 Replies

8. UNIX for Dummies Questions & Answers

Mac OS keeps switching between shell types

Whenever I relaunch my terminal application on Mac OS 10.4.6, the shell changes to something different. E.g. I used to work in "sh" and then relaunch, I am suddenly in "bash" mode and none of the most basic commands work anymore. Why can't the unix community agree on one single type of shell?? As... (1 Reply)
Discussion started by: PixelLover
1 Replies

9. UNIX for Advanced & Expert Users

running a scr in rc3.d not as root, can i?

I want to run one of my startup script S21mystartup.scr in rc3.d directory so it boots with the system, however, can i do this as other than root? Don't want it to run as root. how can i get this to go as another user? (6 Replies)
Discussion started by: kymberm
6 Replies

10. UNIX for Dummies Questions & Answers

cde and its workspaces

Hello to all i am using Solaris 8 and my problem is that i want so start an applikation in workspace 2 for example. To start a program i want to use a termal in workspace 1. Is ist possible to say an application that it should be startet in an other workspace?? Thank's for your help. (1 Reply)
Discussion started by: hans-schranz
1 Replies
Login or Register to Ask a Question