• Creating a zero-byte semaphore file

    From Sean Dennis@1:18/200 to All on Thursday, January 12, 2006 16:29:18
    Hi, everyone.

    I'm trying to create a zero-byte semaphore file from the command line for Internet Rex to rescan upon a mail scan. I'm using this:

    copy 0 >> d:\bt\flags\rescan.now

    I usually get an error saying "file not found". It's been a long time since I've messed with BT directly (I just ordered distinctive ring so I can have dialup on the BBS)...

    Any and all help is appreciated.

    Later,
    Sean

    // sean@outpostbbs.net | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - bbs.outpostbbs.net (1:18/200)
  • From Alan Ianson@1:153/757 to Sean Dennis on Thursday, January 12, 2006 13:48:36
    Sean Dennis wrote to All:

    I'm trying to create a zero-byte semaphore file from the command line for Internet Rex to rescan upon a mail scan. I'm using this:

    copy 0 >> d:\bt\flags\rescan.now

    I used to do this with "TYPE NULL >>d:\bt\flags\rescan.now, or
    something thereabouts..

    Ttyl :-),
    Al

    ... We must believe in free will - we have no choice.

    --- MBSE BBS v0.83.7 (GNU/Linux-x86_64)
    * Origin: The Rusty MailBox - Penticton, B.C. Canada - trmb.ca (1:153/757)
  • From Rob Swindell to Sean Dennis on Thursday, January 12, 2006 18:25:55
    Re: Creating a zero-byte semaphore file
    By: Sean Dennis to All on Thu Jan 12 2006 04:29 pm

    Hi, everyone.

    I'm trying to create a zero-byte semaphore file from the command line for Internet Rex to rescan upon a mail scan. I'm using this:

    copy 0 >> d:\bt\flags\rescan.now

    echo. >> filename

    or (on some OSes):

    rem >> filename

    digital man

    Snapple "Real Fact" #134:
    An ant can lift 50 times its own weight.
    Norco, CA WX: 64.2°F, 43% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs
  • From Sean Dennis@1:18/200 to Alan Ianson on Thursday, January 12, 2006 19:06:40
    Alan,

    *** Quoting Alan Ianson from a message to Sean Dennis ***

    I used to do this with "TYPE NULL >>d:\bt\flags\rescan.now, or
    something thereabouts..

    Still get that "file not found" error...

    Later,
    Sean

    // sean@outpostbbs.net | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - bbs.outpostbbs.net (1:18/200)
  • From Andrew Leary@1:320/119 to Sean Dennis on Thursday, January 12, 2006 21:10:50
    Hello Sean!

    Thursday January 12 2006 16:29, Sean Dennis wrote to All:

    I'm trying to create a zero-byte semaphore file from the command line
    for Internet Rex to rescan upon a mail scan. I'm using this:

    copy 0 >> d:\bt\flags\rescan.now

    In 4DOS/4OS2, use the touch command. For example:

    TOUCH /C D:\BT\FLAGS\RESCAN.NOW

    The /C switch tells TOUCH to create the file if it doesn't exist. I use this in my batch files to create polls by TOUCHing .FLO files in my outbounds.

    Andrew

    ---
    * Origin: Bits & Bytes BBS * V.Everything! * 860/535-4284 (1:320/119)
  • From Alan Ianson@1:153/757 to Sean Dennis on Thursday, January 12, 2006 18:41:37
    Sean Dennis wrote to Alan Ianson:

    I used to do this with "TYPE NULL >>d:\bt\flags\rescan.now, or something thereabouts..

    Still get that "file not found" error...

    Oops, I forgot the closing quote. I used TYPE NULL >>somefile.ext
    IIRC but I don't have an os2 machine handy here to try it out. I use

    touch somefile.txt

    on linux but I'm not sure if that would work on os2 or not.

    Ttyl :-),
    Al

    ... Politics is the entertainment branch of industry

    --- MBSE BBS v0.83.7 (GNU/Linux-x86_64)
    * Origin: The Rusty MailBox - Penticton, B.C. Canada - trmb.ca (1:153/757)
  • From Sean Dennis@1:18/200 to Alan Ianson on Thursday, January 12, 2006 22:09:04
    Alan,

    *** Quoting Alan Ianson from a message to Sean Dennis ***

    touch somefile.txt

    I can find that util for OS/2-I have it somewhere...I'll try that, thanks!

    Later,
    Sean

    // sean@outpostbbs.net | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - bbs.outpostbbs.net (1:18/200)
  • From Sean Dennis@1:18/200 to Andrew Leary on Friday, January 13, 2006 15:00:02
    Andrew,

    *** Quoting Andrew Leary from a message to Sean Dennis ***

    In 4DOS/4OS2, use the touch command. For example:

    I'll have to install 4OS2 then. :) I'll do that tonight-thanks for the info.

    Later,
    Sean

    // sean@outpostbbs.net | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - bbs.outpostbbs.net (1:18/200)
  • From Sean Dennis@1:18/200 to Rob Swindell on Friday, January 13, 2006 15:01:20
    Rob,

    *** Quoting Rob Swindell from a message to Sean Dennis ***

    echo. >> filename

    That did it, thanks! Much appreciated.

    Didn't know you hung out in here. <G>

    Later,
    Sean

    // sean@outpostbbs.net | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - bbs.outpostbbs.net (1:18/200)
  • From Rob Swindell to Sean Dennis on Friday, January 13, 2006 13:39:43
    Re: Re: Creating a zero-byte semaphore file
    By: Sean Dennis to Rob Swindell on Fri Jan 13 2006 03:01 pm

    Rob,

    *** Quoting Rob Swindell from a message to Sean Dennis ***

    echo. >> filename

    That did it, thanks! Much appreciated.

    No problem. The *nix 'touch' command (as mentioned here), is a more appropriate command, but isn't standard in the DOS/Windows/OS2 world. :-(

    Didn't know you hung out in here. <G>

    I scan all the BBS-related echoes from time to time. :-)

    digital man

    Snapple "Real Fact" #62:
    The lifespan of a tastebud is 10 days.
    Norco, CA WX: 84.3°F, 23% humidity, 1 mph ENE wind, 0.00 inches rain/24hrs
  • From Johan Zwiekhorst@2:292/100 to Sean Dennis on Saturday, January 14, 2006 01:09:37
    Hi Sean!

    In your message to Alan Ianson, dated <Thursday January 12 2006 19:06>, you wrote:

    I used to do this with "TYPE NULL >>d:\bt\flags\rescan.now, or
    something thereabouts..

    SD: Still get that "file not found" error...

    That's because you should use 'TYPE NUL >file' (note the single L).

    Kind regards,

    ._|~/_

    e-mail: johan@zwiekhorst.be_NOSPAM (home)
    web: http://www.zwiekhorst.be (personal)
    http://www.diskidee.be (our e-zine!)
    --- EMMA v0.9b
    * Origin: Tripod BBS Belgium - bortaS bIr jablu'DI'reH QaQqu' nay' (2:292/100)
  • From Alan Ianson@1:153/757 to Johan Zwiekhorst on Friday, January 13, 2006 16:35:55
    Johan Zwiekhorst wrote to Sean Dennis:

    I used to do this with "TYPE NULL >>d:\bt\flags\rescan.now, or
    something thereabouts..

    SD: Still get that "file not found" error...

    That's because you should use 'TYPE NUL >file' (note the single L).

    You have a good eye.. ;)

    Ttyl :-),
    Al

    ... As a computer, I find your faith in technology amusing.

    --- MBSE BBS v0.83.7 (GNU/Linux-x86_64)
    * Origin: The Rusty MailBox - Penticton, B.C. Canada - trmb.ca (1:153/757)
  • From Sean Dennis@1:18/200 to Rob Swindell on Friday, January 13, 2006 19:24:56
    Rob,

    *** Quoting Rob Swindell from a message to Sean Dennis ***

    No problem. The *nix 'touch' command (as mentioned here), is a more appropriate command, but isn't standard in the DOS/Windows/OS2 world.
    :-(

    I could install 4OS2 (it's free now) that has that command. I still might though since I can understand that that command is more of a "proper" way of doing things instead of just recreating the file.

    I scan all the BBS-related echoes from time to time. :-)

    Well, you're always welcome in here. :)

    Later,
    Sean

    // sean@outpostbbs.net | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - bbs.outpostbbs.net (1:18/200)
  • From Wayne Steele@3:633/690 to Sean Dennis on Saturday, January 14, 2006 18:28:00
    Hi Sean,

    I'm trying to create a zero-byte semaphore file from the command
    line for Internet Rex to rescan upon a mail scan. I'm using
    this:

    copy 0 d:\bt\flags\rescan.now

    I myself use

    echo sema > filename.ext

    maybe not 0 bytes but 4 bytes

    Lata, badnewsbbs@westnet.com.au
    zomorf zomorf @ Yahoo!msngr
    telnet ftp news kdx http://badnews.bbs.us

    ... Exercise your right to arm and keep bears!

    ---
    * Origin: badnews.bbs.us for a Kick@ss EleBBS & EleWEB BBS (3:633/690)
  • From George Pope@1:382/33 to Sean Dennis on Friday, January 13, 2006 09:14:00
    I'm trying to create a zero-byte semaphore file from the command line for Internet Rex to rescan upon a mail scan. I'm using this:

    copy 0 >> d:\bt\flags\rescan.now

    I prefer:

    ECHO. > d:\filename.ext

    But that's 3 bytes, so you'd need to mess with it if you absolutely MUST have 0! :)

    ... nfx v3.1 What if there were no hypothetical questions? --- SBBSecho 2.11-Win32
    * Origin: The Thunderbolt BBS 501-223-2541 tbolt.synchro.net (1:382/33)
  • From George Pope@1:382/33 to Sean Dennis on Friday, January 13, 2006 09:16:00
    I used to do this with "TYPE NULL >>d:\bt\flags\rescan.now, or something thereabouts..

    Still get that "file not found" error...

    Then why not just suppress screen output, if the error prompt is the issue?

    CTTY NUL
    TYPE NULL >> filename.ext
    CTTY CON

    ... nfx v3.1 --- SBBSecho 2.11-Win32
    * Origin: The Thunderbolt BBS 501-223-2541 tbolt.synchro.net (1:382/33)
  • From Holger Granholm@2:20/228 to Sean Dennis on Saturday, January 14, 2006 21:06:00
    In a message dated 01-13-06, Sean Dennis said to Rob Swindell:

    *** Quoting Rob Swindell from a message to Sean Dennis ***

    echo. >> filename

    That did it, thanks! Much appreciated.

    Except that it leaves a 3-byte file. The reply from Alan Ianson
    shows the correct way to create a zero-byte file.

    73 de Sam, OH0NC

    ___
    * MR/2 2.30 * There were computers in Biblical times. Eve had an Apple.


    --- PCBoard (R) v15.22 (OS/2) 2
    * Origin: Coming to you from the Sunny Aland Islands. (2:20/228)
  • From Robert Wolfe@1:261/1 to Alan Ianson on Tuesday, February 07, 2006 17:54:30
    Alan Ianson wrote to Sean Dennis:

    Oops, I forgot the closing quote. I used TYPE NULL >>somefile.ext
    IIRC but I don't have an os2 machine handy here to try it out. I use

    touch somefile.txt

    on linux but I'm not sure if that would work on os2 or not.

    Actually, I can send a copy of my latest project (and first OS/2 project
    in quite some time), Touch/2 which does basically the same thing the Linux touch command does except for under OS/2.

    Greetings, Robert Wolfe

    ... A Smith & Wesson *ALWAYS* beats 4 Aces.

    --- MBSE BBS v0.83.11 (GNU/Linux-Sparc)
    * Origin: Buffalo Online | Buffalo NY | bbs.net261.com (1:261/1)
  • From Alan Ianson@1:153/757 to Robert Wolfe on Tuesday, February 07, 2006 15:58:32
    Robert Wolfe wrote to Alan Ianson:

    Actually, I can send a copy of my latest project (and first OS/2 project
    in quite some time), Touch/2 which does basically the same thing the Linux touch command does except for under OS/2.

    Sure send it over. I don't have an OS/2 box anymore but I can put it
    in the filebase in case someone can use it.

    I think it was Sean Dennis who was looking for something like this,
    he might like a copy..

    Ttyl :-),
    Al

    ... You can name your salary here.. I call mine Fred.

    --- MBSE BBS v0.83.12 (GNU/Linux-x86_64)
    * Origin: The Rusty MailBox - Penticton, B.C. Canada - trmb.ca (1:153/757)
  • From Robert Wolfe@1:261/1 to Holger Granholm on Tuesday, February 07, 2006 23:10:29
    Holger Granholm wrote to Sean Dennis:

    That did it, thanks! Much appreciated.

    Except that it leaves a 3-byte file. The reply from Alan Ianson
    shows the correct way to create a zero-byte file.

    The tool I wrote for OS/2 leaves a 0-byte file. I uploaded it to Outpost
    BBS this evening.

    Greetings, Robert Wolfe

    ... "Build a watch in 179 easy steps" by C. Forsberg.

    --- MBSE BBS v0.83.11 (GNU/Linux-Sparc)
    * Origin: Buffalo Online | Buffalo NY | bbs.net261.com (1:261/1)
  • From Andrew Leary@1:320/119 to Robert Wolfe on Wednesday, February 08, 2006 02:58:59
    Robert Wolfe wrote to Alan Ianson <=-

    Actually, I can send a copy of my latest project (and first OS/2
    project in quite some time), Touch/2 which does basically the same
    thing the Linux touch command does except for under OS/2.

    I'll take a copy. Email it to ajleary@snet.net if you would be so kind.

    Thanks,

    Andrew
    ... MultiMail, the new multi-platform, multi-format offline reader!

    ---
    * Origin: Bits & Bytes BBS * V.Everything! * (860) 535-4284 (1:320/119)
  • From Robert Wolfe@1:261/20.1 to Andrew Leary on Sunday, February 12, 2006 03:33:22
    *** Quoting Andrew Leary from a message to Robert Wolfe ***

    I'll take a copy. Email it to ajleary@snet.net if you would be so
    kind.

    I believe Sean Dennis has a copy on his BBS that you can download at the moment. Killed my Virtual PC setup I had and am just in the process of getting
    things set back up here so will hopefully be making a rewrite soon.

    ---
    * Origin: Another Good Point About eComStation! (1:261/20.1)