• Redirect QWK unzip w/MM

    From James Bradley@1:342/77 to Sean Dennis on Sun Apr 11 14:12:00 2010
    On or about 04-10-10 20:38, Sean Dennis allegedly uttered "Redirect QWK unzip w/MM" to James Bradley:

    Redirection is next?

    I wish I could help you more, but I only wrote a shell
    script once about ten years ago. Perhaps posting in LINUX
    might get you better answers. Sorry.

    Necessity being a *mother* of an invention... <G> Redirection it is! <L>


    ... The captain need not apologize for the storm.
    ___ MultiMail/Linux v0.49

    --- Maximus 3.01
    * Origin: -=-= Calgary Organization CDN (403) 242-3221 (1:342/77)
  • From James Bradley@1:342/77 to All on Fri Apr 9 01:19:06 2010
    Hello:

    I use a DOS based BBS and QWK packets. The trouble is, I use Linux and MultiMail. The permissions of the landed file are being saved as read-only.

    The Z-modem protocol doesn't seem to contain any switches to fix it, and Minicom (The communications program.) doesn't mention anything pertinent AFAICT. So far, I have been starting mm with a script to change the permission of the whole directory every time I start it.

    #!/bin/bash
    chmod 660 /~/file/in/GYPSY.QWK.*
    mm

    I prefer to just leave the reader running, so I'm suspecting I might be able to - when sending mm to unzip the file - redirect to a bash script? I'm afraid I'm no script kiddie, and a little foggy how to pass the file variable. Am I beating a path that is better directed elsewhere? The unzip command didn't seem to document anything on the topic either, so this is kinda my last stab at it.

    Brainstorming, I was thinking:
    # Decompression commands (must include an option to junk/discard paths!) zipUncompressCommand: chzip

    Where:
    chmod 660 [whatever.file.mm.sends] | unzip -joLq

    I recall trying to embed chmod into .mmailrc a few different ways, but they were all hit and miss propositions.


    Thanks for reading!


    ___ MultiMail/Linux v0.49

    --- Maximus 3.01
    * Origin: -=-= Calgary Organization CDN (403) 242-3221 (1:342/77)
  • From Sean Dennis@1:18/200 to James Bradley on Fri Apr 9 18:49:15 2010
    Hello, James.

    Friday April 09 2010 at 01:19, you wrote to All:

    chmod 660 [whatever.file.mm.sends] | unzip -joLq

    For what you want to do, that seems to me the most logical place to do what you
    need to do is in that command line. Have you tried it yet? You may have to put it into a shell script to get it to do what you want, but I don't see why you couldn't do that.

    Later,
    Sean

    //sean@nsbbs.info | http://nsbbs.info | ICQ: 19965647

    ... Insanity is hereditary -- you get it from your children.
    --- GoldED/2 3.0.1
    * Origin: Nocturnal State BBS - (423) 926-7999 - bbs.nsbbs.info (1:18/200)
  • From James Bradley@1:342/77 to Sean Dennis on Sat Apr 10 14:47:02 2010
    On or about 04-09-10 18:49, Sean Dennis allegedly uttered "Redirect QWK unzip w/MM" to James Bradley:

    chmod 660 [whatever.file.mm.sends] | unzip -joLq

    For what you want to do, that seems to me the most logical
    place to do what you need to do is in that command line.
    Have you tried it yet? You may have to put it into a shell
    script to get it to do what you want, but I don't see why
    you couldn't do that.

    Naturally, that was my last thrust. /-: Off to the bash docs...

    I thought after I posted, I'd have to include the file variable with the unzip command too? So far:

    #!/bin/bash -c
    chmod 660 $0 & unzip joLq $0


    Didn't do it. Suggestions? I tried without the -c, two &&, a |... Redirection is next?


    ... James
    ___ MultiMail/Linux v0.49

    --- Maximus 3.01
    * Origin: -=-= Calgary Organization CDN (403) 242-3221 (1:342/77)
  • From Sean Dennis@1:18/200 to James Bradley on Sat Apr 10 20:38:34 2010
    Hello, James.

    Saturday April 10 2010 at 14:47, you wrote to me:

    Didn't do it. Suggestions? I tried without the -c, two &&, a |... Redirection is next?

    I wish I could help you more, but I only wrote a shell script once about ten years ago. Perhaps posting in LINUX might get you better answers. Sorry.

    Later,
    Sean

    //sean@nsbbs.info | http://nsbbs.info | ICQ: 19965647

    ... I am not young enough to know everything. - J.M. Barrie
    --- GoldED/2 3.0.1
    * Origin: Nocturnal State BBS - (423) 926-7999 - bbs.nsbbs.info (1:18/200)