LinuxQuestions.org
Review your favorite Linux distribution.
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 08-19-2009, 08:46 AM   #1
putvejs
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Send statistics over FTP - HOW?


Hi!


Is there any way to send lspci statistics over ftp in one command line

I have ftp server on WinXP host: ftpserver, user : ftpuser, password : ftppassword
 
Old 08-19-2009, 10:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,318

Rep: Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879
Quote:
Originally Posted by putvejs View Post
Hi!


Is there any way to send lspci statistics over ftp in one command line

I have ftp server on WinXP host: ftpserver, user : ftpuser, password : ftppassword
Probably not over one line, but a simple expect script should do it. What version/distro of Linux are you running this on?

And if you were using linux on both ends, you could easily do it in one line, with passwordless SCP transfer.
 
Old 08-19-2009, 10:49 AM   #3
putvejs
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Probably not over one line, but a simple expect script should do it. What version/distro of Linux are you running this on?

And if you were using linux on both ends, you could easily do it in one line, with passwordless SCP transfer.
I am using xubuntu jaunty, could you pls provide script details?

What is one command line solution for 2 linux machines?

TNX
 
Old 08-19-2009, 04:20 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,318

Rep: Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879Reputation: 3879
Quote:
Originally Posted by putvejs View Post
I am using xubuntu jaunty, could you pls provide script details?

What is one command line solution for 2 linux machines?

TNX
Spell out your words, please.....

And as I said, a simple expect script can easily do this. Read the man page for expect, and check Google. There are lots of tutorials and how-tos. If you're asking us to write the script for you, sorry...we won't. We'll be glad to help, though, if you get stuck. Post what you write, and what problems you're having, and we'll help you through it.

The one-command solution, as I said, was SCP. Again, read the man page for SCP. In a nutshell, it's "scp <source file(s)> <user ID>@<remote address>:</remote directory>".
 
Old 08-19-2009, 07:50 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You need to use ssh to run the lspci command on a remote machine. FTP has it's own commands which don't include lspci.

If you use public key authentication, and have your private key locked with a passphrase, you can use ssh-agent to hold the key for a session.

eval $(ssh-agent)
ssh-add
<your passphrase>

Now you won't be prompted for the pass phrase.

Using expect might not be a good idea because the passphrase should exist in your head and not in an expect script.
 
  


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
send files and folder ftp infonlinebr Linux - Newbie 3 08-01-2008 01:13 PM
How to tar a folder and send it in FTP on another server ? SethShannon Linux - Newbie 2 09-28-2007 02:27 AM
Generate (vs)ftp usage statistics ottow Linux - Software 0 03-23-2005 04:30 PM
FTP server statistics - vsftpd lazo Linux - Software 0 12-22-2004 10:33 AM
how do i send voice mail with ftp and audacity green-ears Linux - Newbie 0 11-17-2003 01:17 PM


All times are GMT -5. The time now is 12:39 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