If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Dbexport

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-03, 04:28
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Dbexport

Hi,

I need to do a script for look who is login in the system and send a message that logout in five minutes, if not logout to do kill -9 pid and then execute dbexport.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 12-02-03, 09:37
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
Your logged in users, as far as Informix is concerned, are shouwn by "onstat -u". Unless they are shared memory connections (ie. telnet) a unix "who" isn't going to show them, nor are they going to see a "wall" command.

To knock them off, its Informix "onmode -z their_sid". Kill -9 isn't going to touch a user, just kill the engine - WHICH YOU DON'T WANT TO DO.
__________________
Fred Prose
Reply With Quote
  #3 (permalink)  
Old 12-08-03, 15:36
amit_kaps amit_kaps is offline
Registered User
 
Join Date: Nov 2003
Location: Pune, India
Posts: 22
Hi,
You can do the following-
using the onstat -u command, ge the userid and the terminals that they are connected to the database with.

and using those user ids and terminals send a message to them using the command-
$ write <userid> <terminal> <<EOF
<u'r message here>
EOF
__________________
Regards,
Amit.K.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On