Login/xterm and run script


 
Thread Tools Search this Thread
Operating Systems Solaris Login/xterm and run script
# 1  
Old 11-07-2014
Sun Login/xterm and run script

Hi - I need to have a script run automatically when I login to my solaris 10 system (running CDE). I stuck this in my .cshrc file:

Code:
xterm -e /bin/sh -c "/.script-name; exec /bin/sh"

When I login, a window comes up and runs the iteractive script-name, and then when the script is done, my login CDE screen continues to come up as normal. BUT... then it appears that the "xterm..." cmd (above) is run mutiple times again, and about 10+ windows come up all over the screen. What is going on here? I just want it to come up the "first" time.

Last edited by Scott; 11-10-2014 at 04:46 PM.. Reason: Code tags
# 2  
Old 11-08-2014
Put your command in your .dtprofile, not .cshrc.
# 3  
Old 11-10-2014
login/xterm and run script

THANKS!!! IT WORKED!

Another question - how can I increase the text size of what appears in the window?
# 4  
Old 11-10-2014
# 5  
Old 11-10-2014
login/xterm and run script

achenle and jlliagre - thank you very much!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to track what Commands run in a login session

Hi I need to track what commands run in login session in solaris whether it is root or any normal users in bash shell. My actual requirement is that when a user (nomal/root) login into the system, whatever commands he run, it should log into file on specified path . I don't require command... (4 Replies)
Discussion started by: hb00
4 Replies

2. Shell Programming and Scripting

Run a script on login event

Hi, I need to run a script whenever a user logs in to HP-UX unix server. Please let me know how can i implement this. I need to run this script on login for all users starting with 'X' ( x110,x112,x13545, etc). Thanks a lot. (2 Replies)
Discussion started by: pradebban
2 Replies

3. Linux

How to open a gnome-terminal in specific workspace and run script within it automatically upon login

OK this is a bit messy. I run Fedora with gnome on a compiz desktop, I have a script (userstart) that opens my 'standard' environment for all my machines when I login. userstart flips to a specific workspace and then opens the required applications in that workspace then flips to the next... (2 Replies)
Discussion started by: Bashingaway
2 Replies

4. Shell Programming and Scripting

How run simple command in xterm, and leave open?

I have written a simple script to show battery life remaining. I would like to be able to quickly view it with a predefined keybinding or launcher. xterm -e scriptname should do the trick but the xterm closes when the script finishes, not giving me chance to read the output. How can I keep... (3 Replies)
Discussion started by: spoovy
3 Replies

5. AIX

How to: Run backup_menu.sh at login for only one user

Hi all, I Hope to find the answer. I am new to aix 5L, I have one oracle 10gR2 database server run on ain 5L so when I start my new Job I find that the operater login oracle user and run the backup_menu.sh, this menu is to make a backup of the database top disk and transfer it to tape,... (3 Replies)
Discussion started by: essamfayez
3 Replies

6. Shell Programming and Scripting

Run script at first login user (only)

Hi all, I would need a script to run only at the first login of a newly created user. And at the first time only. I did some googlework but unfortunatly... I made up it possibly had something to do with the bashrc file. This script is some kind of info for the user ; with the possiblity to... (1 Reply)
Discussion started by: laurens
1 Replies

7. HP-UX

How to run tlremove command without root login

Hi all, Can somebody give me advice on how to run tlremove and tlinstall command without root login. When i try to login to root i get error message as "crt0: ERROR couldn't open dld.sl errno:000000002". This error comes when transition link is removed. so i want to reinstall the link... ... (1 Reply)
Discussion started by: aditya.gaur
1 Replies

8. Solaris

Run fsck from standard login

Hello. I have created a FS /u00/ and created a non-root login under this FS. Also, disabled direct root login. Now is it possible or worth moving this login over to the root partition or allowing mount/umount + fsck from a standard account. As I am not able to run fsck for this FS. How to... (5 Replies)
Discussion started by: panchpan
5 Replies

9. UNIX for Dummies Questions & Answers

run commands before login

What would be the best way to setup for a Linux box to run a few commands before the user logs in? (1 Reply)
Discussion started by: woofie
1 Replies
Login or Register to Ask a Question