LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2006, 06:33 PM   #1
DoDo1975
LQ Newbie
 
Registered: Nov 2006
Posts: 17

Rep: Reputation: 0
Transfer 1 file


Hi,

I am trying to build a script that will prompt for file upload, then wait while someone uploads 1 file. On completion, the script would then close.

I could probably start an ftp daemon, but then I think I would have to close it manually at completion of file upload.

I suspect maybe there is an easier way. I don't need to use ftp, I could something else as long as a download wouldn't be required.

Can anyone help?

Thanks,

Joel
 
Old 12-12-2006, 06:34 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
You could use scp, assuming that SSH connections are accepted on the remote machine.

--Ian
 
Old 12-12-2006, 08:47 PM   #3
DoDo1975
LQ Newbie
 
Registered: Nov 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, ssh connections are accepted. I have been trying to read a little about scp since I posted to see if its right.

Here is scenario.

My target is an embedded system with no hard drive. I have 32 Megs memory, or which 9 megs is already being used up as a ramdisk. I need to be able to upload firmware upgrades and then run them. The files then might be up to 8 megs. I dont want to leave 8 megs free space on my system as this would chew up significant percentage of ram so I created a 8 Meg ramdisk that is empty but can be mounted when needed.

So I want this.

When scp asks to upload file I want to mount the ramdisk before uploading file. Is there a way to have scp do this, to run a command before initialising the transfer?
 
Old 12-13-2006, 01:47 PM   #4
DoDo1975
LQ Newbie
 
Registered: Nov 2006
Posts: 17

Original Poster
Rep: Reputation: 0
up to top!!
 
Old 12-13-2006, 02:18 PM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Send the mount command with ssh first, then send the file using an scp command.
 
  


Reply



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
file transfer basak Linux - Software 3 07-14-2006 01:58 PM
File Transfer ~P3~ Linux - Newbie 2 05-19-2006 04:25 PM
File Transfer ~P3~ Linux - Laptop and Netbook 1 05-19-2006 09:53 AM
File Transfer thereeper Linux - Software 2 05-17-2005 05:26 PM
file transfer from vm phfowol Debian 3 10-23-2004 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:09 AM.

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
Open Source Consulting | Domain Registration