Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97501

Re: reg multiple login python

Path csiph.com!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'here?': 0.09; 'message- id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'statements': 0.09; 'threads.': 0.09; 'python': 0.10; 'anyway': 0.11; 'thursday,': 0.13; 'subject:python': 0.14; 'server,': 0.15; 'thu,': 0.15; '>on': 0.16; 'decent': 0.16; 'need,': 0.16; 'processes.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:login': 0.16; 'threads': 0.16; 'wrote:': 0.16; 'memory': 0.17; 'url:home': 0.18; 'all,': 0.20; '2015': 0.20; 'machine': 0.21; 'affected': 0.22; 'are.': 0.22; 'clock': 0.22; 'advance.': 0.23; 'nearly': 0.23; 'script': 0.25; 'command': 0.26; 'header:X-Complaints-To:1': 0.26; 'i/o': 0.29; 'request,': 0.29; 'launch': 0.29; 'creating': 0.30; 'probably': 0.31; 'posting': 0.32; 'maybe': 0.33; 'run': 0.33; '-0700': 0.33; 'interaction': 0.33; 'right?': 0.33; 'file': 0.34; 'server': 0.34; 'requirements': 0.35; 'could': 0.35; 'something': 0.35; 'remote': 0.35; 'but': 0.36; 'too': 0.36; 'instead': 0.36; 'there': 0.36; '(and': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:org': 0.37; 'charset :us-ascii': 0.37; 'to:addr:python.org': 0.40; 'still': 0.40; 'some': 0.40; 'waiting': 0.60; 'reach': 0.61; 'email addr:gmail.com': 0.62; 'show': 0.62; 'real': 0.62; 'more': 0.63; 'contact': 0.66; 'talking': 0.67; 'completed': 0.69; 'sounds': 0.76; '>if': 0.84; 'congestion': 0.84; 'detached': 0.84; 'now...': 0.84; 'utc+5:30,': 0.84; 'yet?': 0.84; 'activity,': 0.91; 'dennis': 0.91; 'received:108': 0.93; 'suffer': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: reg multiple login python
Date Thu, 08 Oct 2015 08:42:02 -0400
Organization IISS Elusive Unicorn
References <2fe53246-4212-4cfd-896b-acf8e8e88b09@googlegroups.com> <9cd3423a-75c3-4b94-9bc8-cd48e2da4140@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 108.68.178.61
X-Newsreader Forte Agent 6.00/32.1186
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.469.1444308144.28679.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1444308144 news.xs4all.nl 23757 [2001:888:2000:d::a6]:35349
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97501

Show key headers only | View raw


On Thu, 8 Oct 2015 03:03:17 -0700 (PDT), harirammanohar159@gmail.com
declaimed the following:

>On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com  wrote:
>> Hi All,
>> 
>> Is there anyway i can login to remote servers at once and do the activity, i can do one by one using for loop..
>> 
>> Thanks in advance.
>
>if its a command i can launch a detached process for each request, its a session..

	You've been posting these (mostly) one-line statements daily for nearly
a week now... Maybe if you actually show us what you've got working we can
extrapolate some solution -- since what you've told us is still too vague
to know what the real requirements are.

	You have been working on this and not waiting for a completed program
to be provided to you, right?

	1) the only way you are going to get "at once" is by having one
process/thread for each server, with all processes waiting for the system
clock to reach some value (and even then, you are going to be affected by
Ethernet congestion and number of cores that can run the processes -- if
you have more servers to contact than active cores you will have to suffer
process swapping by the OS)

	2) have you managed to script the interaction with a single server yet?
That's the first thing you need, before worrying about parallelizing the
action over multiple server connections.

	3) since this sounds like something that will be I/O bound (waiting for
server responses) you could probably get away with using Python threads
instead of independent processes. However, how many servers are we talking
here? Creating 50-100 threads on a decent machine may not be a problem, but
creating 1000 could start impacting memory and cause page file thrashing --
you might have to partition the job to use a pool of threads.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

reg multiple login python harirammanohar159@gmail.com - 2015-10-01 00:04 -0700
  Re: reg multiple login python Laura Creighton <lac@openend.se> - 2015-10-01 09:17 +0200
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-01 01:25 -0700
    Re: reg multiple login python Laura Creighton <lac@openend.se> - 2015-10-01 11:10 +0200
    Re: reg multiple login python Michael Ströder <michael@stroeder.com> - 2015-10-01 11:17 +0200
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-01 03:07 -0700
    Re: reg multiple login python Laura Creighton <lac@openend.se> - 2015-10-01 14:26 +0200
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-01 03:09 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-04 21:01 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-04 21:06 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-05 03:13 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-05 20:22 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-06 02:09 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-06 20:47 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-07 02:24 -0700
    Re: reg multiple login python Emile van Sebille <emile@fenx.com> - 2015-10-07 09:58 -0700
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-08 03:03 -0700
    Re: reg multiple login python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-10-08 08:42 -0400
  Re: reg multiple login python harirammanohar159@gmail.com - 2015-10-09 02:07 -0700

csiph-web