automatic dxterm logout


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users automatic dxterm logout
# 1  
Old 05-09-2003
Data automatic dxterm logout

I am using Tru64UX.
I have to login as a backup user to take the regular backups.
What I do is login to the system using an X-Terminal, run a script and exit.

Is there a way where I just login to the system, and the script runs in automatically ( like running scripts in .profile ) and the session terminates automatically after the script terminates?

Milind Shauche.
# 2  
Old 05-09-2003
Why not schedule the backup job with crontab?

type "man crontab" for more information.
/Peter
# 3  
Old 05-09-2003
The script is run by shift engineers and I am supposed to ensure that they are logged out of the X-term session after they execute the backup script.

Since the backup user is a superuser, logging out of the x-term is important. Else it is a security issue.

After the engineer logs into the user, if he is a telnet user the session terminates upon job completion, but if the engineer logs into a x-term session, the telnet session is terminated, and the xterm sesion is left open. My issue is how can I ensure that the xterm session is also terminated after the backup script is completed.
Since the script is interactive, I cannot run it in cron.
# 4  
Old 05-09-2003
i was going to suggest that you run it with nohup and & to log out after it is started. but since you said the script is interactive then you could do it in the users .profile depending on what shell your using theres different ways to do it, you have it call the script and a line after that have it exit. when the script is complete the user will be logged out.
# 5  
Old 05-12-2003
PHP

Thank you Norsk for your advice.

Adding exit after the command, would log him out of the telnet session. It works well.

My user log into a X-term and runs the script. The exit logs out his telnet session, my requirement is to log him out of the x-term session.

How do I log him out of the x=term session ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Automatic logout

Hello, I have this issue on a new server I just built. It is a RHEL 6.7 build. I use VNC to connect to the server from my windows machine. When I login to the Server in morning using VNC I get this error: "Automatic logout, this session is configured to log out after a period of inactivity. I... (0 Replies)
Discussion started by: bitlord
0 Replies

2. UNIX for Dummies Questions & Answers

Session logout

hi, i want to make a session logout in c++/unix which will redirect the user to the login page if the user is idle for 5mins (1 Reply)
Discussion started by: anubhav sharma
1 Replies

3. HP-UX

How to logout

Hi I am using UNIX version. HP-UX HP-UNIX B.11.00 I am writing a script which on certain condition should logout of unix. But with exit command i am not able to get this.. Plz suggest how i should logout of the session directly. (9 Replies)
Discussion started by: manish.s
9 Replies

4. Ubuntu

Help with a logout scrpt

Hi, I'm new to Linux and this forums. I was working on a logout script and was wondering if anyone could help me out. What I'm trying to do is to delete the content of the ~/tmp/ directory and also to perform a check if any processes are currently running befor logout. this is what I have ... (1 Reply)
Discussion started by: zexin
1 Replies

5. Shell Programming and Scripting

session logout

hi, im executing one script i,e sh test.sh i want to log out the sessing after script execution. and i do't want to user command like this. sh test.sh ; exit can i exit the session with the use of script pl help (1 Reply)
Discussion started by: arvindng
1 Replies

6. Linux

What happens when user logout?

Hi When executing some commands, we need to re-login into the account. What happens when logged out and login ? Are there any scripts (.bashrc .... ) to be executed or to update system files. Help Me .......... (1 Reply)
Discussion started by: yhacks
1 Replies

7. UNIX for Dummies Questions & Answers

Exit or logout

When I want to close my session I can use exit or logout, and a lot of manuals use both of them indistinctly. So, Is there any difference between exit or logout?? Or are both of them exactly the same command?? I forgot to mention that I am using a RedHat Unix. Thanks for your help. Kinai. (1 Reply)
Discussion started by: kinai
1 Replies

8. Solaris

.logout

I want to execute script while exiting a session, to gather session details. How to implement this in Solaris 10 (3 Replies)
Discussion started by: sharif
3 Replies

9. Shell Programming and Scripting

.logout help

We have an application that uses the csh shell as the default. We can not change this as when we upgrade it will change back to csh. We have several people that log in with this id. I would like to create a .logout exit script to audit what transactions were performed, termal, etc. Does... (3 Replies)
Discussion started by: 2dumb
3 Replies

10. UNIX for Dummies Questions & Answers

logout

Every time the ksh script completes I got message - logout. I don't want to see this message.... Can someone give me a clue Thanks in advance. ZAM SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Sun-Fire-880 (2 Replies)
Discussion started by: zam
2 Replies
Login or Register to Ask a Question