#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    uae
    Posts
    1
    Rep 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).]
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    asheville,nc, usa
    Posts
    2
    Rep Power
    0
    I can write a Perl script to do this? Is it a Linux server?

    dale
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    uae
    Posts
    1
    Rep 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).]
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    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...
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    uae
    Posts
    1
    Rep Power
    0
    i have login name and password , but he ask about OS

    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).]
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    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...
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    uae
    Posts
    1
    Rep 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

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


    thank you again
    bye


  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    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...
  16. #9
  17. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    uae
    Posts
    1
    Rep 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
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    Yup, thats it...OK, off to make you that script. You will get it by mail, or I will post it here...
  20. #11
  21. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    uae
    Posts
    1
    Rep Power
    0
    i'm watting
    Thank you

IMN logo majestic logo threadwatch logo seochat tools logo