LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-07-2005, 08:39 AM   #1
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Uploading files to webserver in perl ?


Server : Apache , OS -FC3.

I need a simple perl script that will upload files to my webserver.

I tried copying to tmp dir and moving but was not successful.Says permission denied

Any help would be great

Cheers
Z
 
Old 02-07-2005, 10:02 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
why use perl at all for this? if you just need to copy over files from one computer to the other, you could just use scp. you can use perl to run the scp command if you want. if you really need to do something in perl and calling a scp isn't an option for you, you may want to look into the Net::FTP module from cpan. I don't see an install module, for this so you'll have to find the correct Net folder in /usr/lib/perlX (X probably is 5) and create an folder called FTP in there. copy the source to that FTP directory. then go ahead and write your perl code using all the FTP stuff you want.
 
Old 02-07-2005, 11:07 PM   #3
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Original Poster
Rep: Reputation: 39
Actually I am running a Apache webserver and I am developing a web site for managing software releases.

I`ve used perl for this.

Now when a user wants to upload a file to the web server I have to create a directory and put the file there

I need a perl script for this.
I tried using File::Copy and copy function but it is not working


Cheers
Z
 
  


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
Uploading files stops after a few KB TTL_2 Linux - Networking 5 03-31-2005 12:08 PM
Uploading Files lmanwarren Linux - Software 1 03-21-2005 08:48 AM
Managing a Website - Uploading Files BionicJoe Linux - Software 1 02-11-2005 02:37 AM
uploading files using putty ? lozz1978 Linux - Newbie 2 02-20-2004 10:30 AM
PHP and uploading files Syncrm Linux - General 5 07-02-2002 11:49 AM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration