nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Log Off Issue

This is a discussion on Log Off Issue within the Linux software forums, part of the Linux Getting Started category; I would like to create a scirpt so when my users go to the command prompt, they can type: "sof" ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-29-2005, 10:35 PM
tkinsella
Guest
 
Posts: n/a
Default Log Off Issue

I would like to create a scirpt so when my users go to the command prompt, they can type:
"sof"
and the system will log them out. How can I do this?

ANY help is appriciated. Thanks!
Reply With Quote
  #2 (permalink)  
Old 08-30-2005, 04:03 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

You can use logout command i.e. put this command in script

Code:
#/bin/sh
logout
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Issue related to shells vaibhav.kanchan Getting started tutorials 4 03-25-2008 01:52 AM
lighty: mysql issue when chroot enabled TECK Web servers 11 11-24-2007 12:06 PM
Cups is not printing text file with proper format, staircasing issue Ashish Pathak CentOS / RHEL / Fedora 1 11-18-2007 09:12 AM
Ubuntu: Issue accessing any System applications hightech Linux software 4 01-29-2007 10:56 AM


All times are GMT +5.5. The time now is 05:12 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38