Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old December 9th, 2000, 05:04 PM
sam20 sam20 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: uae
Posts: 1 sam20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi

Folder1
Folder2

i want a small cgi program , that compress all files under Folder1 to total.zip and send it to Folder2 .

who can do it ?

Thank you


[This message has been edited by sam20 (edited December 09, 2000).]

Reply With Quote
  #2  
Old December 10th, 2000, 12:13 AM
dalehend dalehend is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: asheville,nc, usa
Posts: 2 dalehend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dalehend
I can write a Perl script to do this? Is it a Linux server?

dale

Reply With Quote
  #3  
Old December 10th, 2000, 08:43 AM
sam20 sam20 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: uae
Posts: 1 sam20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yes

but i want to run the script from my Browser ( IE ) .

when i want to login to Telnet , i got this messeage first


Red Hat Linux release 6.1 (Cartman)
Kernel 2.2.12-20 on an i686
Login :


i'm watting ,
Thank you


[This message has been edited by sam20 (edited December 10, 2000).]

Reply With Quote
  #4  
Old December 10th, 2000, 10:04 PM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Is this some kind of joke?? Of course you got that message, you need to login first, then you will be able to run the script. Besides, that script is awfully easy to write. Maybe you should try it out for yourself...

Reply With Quote
  #5  
Old December 11th, 2000, 07:10 AM
sam20 sam20 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: uae
Posts: 1 sam20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have login name and password , but he ask about OS URL

i'm not a perl programmer , if you know lunix commands please help me :|


OS = Oprating System



[This message has been edited by sam20 (edited December 11, 2000).]

Reply With Quote
  #6  
Old December 11th, 2000, 11:03 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I know what OS is. Well, you have two ways of doing this:
1) Via the tar/gzip combination.
2) Other via zip if you have it.

You can see if you have the zip program in many ways, the easiest being typing zip once you log into the system. Then tell us here, and I'll write yo uthat Perl script.

As for Linux commands, there is a directory called dc in the /usr direcotry. There are, so-called, HOWTO documents (often called simply HOWTOs) that should help you on your way. The one you should pay most attention to is Windows-DOS-Linux HOWTO or something like that...

Reply With Quote
  #7  
Old December 11th, 2000, 07:00 PM
sam20 sam20 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: uae
Posts: 1 sam20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thank you very much

i'm not fimiler with telnet commands , you can make the program for any type (zip or tar ) , i will find a solution for unzip compressd file URL

please i want to run the file from my browser , for example ( http://www.cnn.com/your_script.cgi )


thank you again
bye



Reply With Quote
  #8  
Old December 12th, 2000, 12:56 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
There are no telnet commands (well, no commands that should bother you). They are all shell commands. Just type "zip" into the shell, without quotes and see what is the output.

Anyway, I can make a CGI script for you, but you will need to tell me the exact configuration of your Apache server...

Reply With Quote
  #9  
Old December 12th, 2000, 04:35 PM
sam20 sam20 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: uae
Posts: 1 sam20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
noona:~$ zip
Copyright (C) 1990-1996 Mark Adler, Richard B. Wales, Jean-loup Gailly
Onno van der Linden and Kai Uwe Rommel. Type 'zip -L' for the software License.
Zip 2.1 (April 27th 1996). Usage:
zip [-options] [-b path] [-t mmddyy] [-n suffixes] [zipfile list] [-xi list]
The default action is to add or replace zipfile entries from list, which
can include the special name - to compress standard input.
If zipfile and list are omitted, zip compresses stdin to stdout.
-f freshen: only changed files -u update: only changed or new files
-d delete entries in zipfile -m move into zipfile (delete files)
-k force MSDOS (8+3) file names -g allow growing existing zipfile
-r recurse into directories -j junk (don't record) directory names
-0 store only -l convert LF to CR LF (-ll CR LF to LF)
-1 compress faster -9 compress better
-q quiet operation -v verbose operation/print version info
-c add one-line comments -z add zipfile comment
-b use "path" for temp file -t only do files after "mmddyy"
-@ read names from stdin -o make zipfile as old as latest entry
-x exclude the following names -i include only the following names
-F fix zipfile (-FF try harder) -D do not add directory entries
-A adjust self-extracting exe -J junk zip file prefix (unzipsfx)
-T test zipfile integrity -X eXclude eXtra file attributes
-y store symbolic links as the link instead of the referenced file
-h show this help -n don't compress these suffixes
noona:~$
[/code]

Thank you

Reply With Quote
  #10  
Old December 13th, 2000, 12:37 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Yup, thats it...OK, off to make you that script. You will get it by mail, or I will post it here...

Reply With Quote
  #11  
Old December 13th, 2000, 06:06 AM
sam20 sam20 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: uae
Posts: 1 sam20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i'm watting
Thank you

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > i need custom CGI program , who can do it ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway