LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2011, 06:14 AM   #1
acwaydc
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: Disabled
script for simultanous ftp sessions


I am running a vsftpd and I need to log in using ftp> with 2 different users at the same time to download some files and test the load. Any suggestions?
 
Old 07-26-2011, 08:58 AM   #2
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Command line FTP can be scripted. Try Google for some tutorials.

Write a quick script, then launch it from several different consoles.
 
Old 07-26-2011, 10:54 AM   #3
acwaydc
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I would be running this in command line and thus not able to launch more than 1 console. Maybe there is a way to simulate different consoles from a script? Thanks.
 
Old 07-26-2011, 11:07 AM   #4
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
You'll need some kind of terminal multiplexer. Try GNU Screen or Tmux.
 
Old 07-26-2011, 09:08 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
You can put them all in the background in a loop

Code:
for user in user1 user2 ...
do
    nohup ftpscript.sh &
done
NOT exact code but you get the idea...

Last edited by chrism01; 07-27-2011 at 08:09 PM.
 
Old 07-27-2011, 03:43 AM   #6
acwaydc
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
nohup solved the problem thanks!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restart the FTP sessions that are stopped while transferring the files Tekken Linux - Server 1 07-10-2009 02:16 AM
Bash script to test for open FTP sessions from specific clients dz-015 Programming 7 04-09-2009 07:33 AM
FTP sessions stops at /bin/ls inquiry ... lupus9537 Linux - Software 2 03-01-2005 07:19 AM
Why is inetd not creating telnet or ftp sessions on my redhat 6.2 box? bya Linux - Newbie 6 01-14-2004 01:31 AM
Major slowdown/delays on FTP sessions mstembri Linux - Networking 0 02-09-2002 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration