🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3341

Re: What command in a file batch do logout user (Unix or Linux)?

#3341
From: O'leary, Paul [SKY:C01S:EXCH]
Date: Fri, 08 Mar 2002 14:51
34 lines
2301 bytes
Francis wrote:
> 
> Hi,
> I'm a student of Italy and not advisory expert...
> I have a problem:
> I have created a program that analize ping's site and packet trip...
> Whereas program hold out about 40 min... I would like that it will do
> logout,
> so the computer is free for another user...
> What command in a file batch do logout user?
> 
> Thanks
> Francis

Well, this might be a quick solution, but it requires some assumptions: 

I currently do a similar thing using secure shell and secure copy
ssh/scp. 

I scp a pre-written script into /var. 
I then ssh into machine and use the ssh's built in feature of executing
a "command", and afterwards it automatically exits the ssh session. 

Don't know if this will help. You could even write a quick wrapper if
multiple machine need to run the batch process. 
-- 
Paul M. O'Leary
UNIX Software Consultant,
UNIX Consulting Services,
Computer Sciences Corporation
Voice: (613) 768-1825 ESN: 398
Fax:   (613) 763-3283 ESN: 393
M/S:   04352O11
Ottawa, ON.
Technical Details
Message-ID: <3C88CFF1.D90FDE4A@americasm01.nt.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!bcarh8ac.ca.nortel.com!bcarh8ab.ca.nortel.com!not-for-mail
References: <a5qd1m$ro3$1@pegasus.tiscalinet.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8c9b,6747122e884ff174
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: fc89c,6747122e884ff174
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 1012a6,6747122e884ff174
X-Google-Attributes: gid1012a6,public
X-Google-Thread: 110f2c,6747122e884ff174
X-Google-Attributes: gid110f2c,public
X-Google-ArrivalTime: 2002-03-08 07:01:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!bcarh8ac.ca.nortel.com!bcarh8ab.ca.nortel.com!not-for-mail
From: "O'leary, Paul [SKY:C01S:EXCH]" <poleary@americasm01.nt.com>
Newsgroups: comp.unix.programmer,comp.unix.questions,comp.unix.shell,fr.comp.os.unix
Subject: Re: What command in a file batch do logout user (Unix or Linux)?
Date: Fri, 08 Mar 2002 09:51:29 -0500
Organization: Nortel Networks
Lines: 34
Message-ID: <3C88CFF1.D90FDE4A@americasm01.nt.com>
References: <a5qd1m$ro3$1@pegasus.tiscalinet.it>
NNTP-Posting-Host: wcars1g1.ca.nortel.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.72C-CCK-MCD CUE 6.2H or 8S [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en