• Script

    From Joe Schweier@1:342/200 to ALL on Monday, July 06, 2020 12:07:38
    Writing a script... and here's a simple question.... how do I add a carrage return at the end of the statement??

    Thanx

    Joe

    ---
    * Origin: Joe's Mail System 1:342/200 -=joesbbs.com=- (1:342/200)
  • From Alan Ianson@1:153/757.3 to Joe Schweier on Monday, July 06, 2020 14:14:16
    Joe Schweier wrote to ALL:

    Writing a script... and here's a simple question.... how do I add a carrage return at the end of the statement??

    I'm not sure I understand just what you need to do.

    Is this a shell script or a dos batch file?

    Ttyl :-),
    Al

    ... *** ERROR *** Unable to insert witty tagline.

    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.3)
  • From Joe Schweier@1:342/200 to Alan Ianson on Monday, July 06, 2020 21:22:20
    Joe Schweier wrote to ALL:

    Writing a script... and here's a simple question.... how do I add a
    carrage return at the end of the statement??

    I'm not sure I understand just what you need to do.

    Is this a shell script or a dos batch file?

    Ttyl :-),
    Al

    I want the script to "Hit" Enter after it passes a few commands....

    Joe

    ---
    * Origin: Joe's Mail System 1:342/200 -=joesbbs.com=- (1:342/200)
  • From Alan Ianson@1:153/757.3 to Joe Schweier on Monday, July 06, 2020 22:16:42
    Joe Schweier wrote to Alan Ianson:

    I want the script to "Hit" Enter after it passes a few commands....

    I don't have a batch file or shell script that does that so I have no functional example.

    I wonder if..

    echo .

    or something similar would work?

    Ttyl :-),
    Al

    ... "Hello, Lorena Bobbitt? This is Hillary Clinton ..."

    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.3)
  • From Paul Quinn@3:640/1384 to Joe Schweier on Tuesday, July 07, 2020 20:40:47
    Hi! Joe,

    On 06 Jul 20 22:16, Alan Ianson wrote to you:

    I want the script to "Hit" Enter after it passes a few
    commands....

    I don't have a batch file or shell script that does that so I have no functional example.

    When I was still using DOS, I used to use a BFDS util called qECHO to do this...

    qECHO " to <%TMPDRV%\FileFix.txt" CR LF >>%TMPDRV%\NetMgr0%NODE%.Cfg

    You might note the action is implanting a '<' redirection symbol into a disk file (normally illegal in DOS), and the use of a 'CR LF' sequence. No guarantees, but I think qECHO could help you.

    If you had/have a BFDS repository (old file echo thing) near you, then look for a util called 'horst32' (about 61Kb, with a swag of other DOS utils). Or, you might like to FREQ this node for either horst32 or horst32.zip - if you can't do FREQ netmails, let me know & I'll forward it you.

    Cheers,
    Paul.

    ... Oops... Tried to steal my own tagline!
    --- GoldED+/LNX 1.1.5-b20130515
    * Origin: Quinn's Rock - Live from Paul's Xubuntu desktop! (3:640/1384)
  • From Joe Schweier@1:342/200 to Alan Ianson on Tuesday, July 07, 2020 06:21:30
    Joe Schweier wrote to Alan Ianson:

    I want the script to "Hit" Enter after it passes a few commands....

    I don't have a batch file or shell script that does that
    so I have no
    functional example.

    I wonder if..

    echo .

    or something similar would work?

    I figured it out.... added a | at the end of the line...

    :)

    Joe

    ---
    * Origin: Joe's Mail System 1:342/200 -=joesbbs.com=- (1:342/200)
  • From Joe Schweier@1:342/200 to Paul Quinn on Tuesday, July 07, 2020 06:22:36
    Hi! Joe,

    On 06 Jul 20 22:16, Alan Ianson wrote to you:

    I want the script to "Hit" Enter after it passes a few
    commands....

    I don't have a batch file or shell script that does that so I have no
    functional example.

    When I was still using DOS, I used to use a BFDS util
    called qECHO to do this...

    qECHO " to <%TMPDRV%\FileFix.txt" CR LF
    %TMPDRV%\NetMgr0%NODE%.Cfg

    You might note the action is implanting a '<' redirection
    symbol into a disk file (normally illegal in DOS), and
    the use of a 'CR LF' sequence. No guarantees, but I
    think qECHO could help you.

    If you had/have a BFDS repository (old file echo thing)
    near you, then look for a util called 'horst32' (about
    61Kb, with a swag of other DOS utils). Or, you might
    like to FREQ this node for either horst32 or horst32.zip
    - if you can't do FREQ netmails, let me know & I'll
    forward it you.

    got it.... added a | at the end of the statement

    Thanx

    Joe

    ---
    * Origin: Joe's Mail System 1:342/200 -=joesbbs.com=- (1:342/200)
  • From Dan Clough@1:135/115 to Joe Schweier on Tuesday, July 07, 2020 08:08:00
    Joe Schweier wrote to Alan Ianson <=-

    Joe Schweier wrote to ALL:

    Writing a script... and here's a simple question.... how do I add a
    carrage return at the end of the statement??

    I'm not sure I understand just what you need to do.

    Is this a shell script or a dos batch file?

    I want the script to "Hit" Enter after it passes a few
    commands....

    Generally, the "Ctrl-M" character represents "Enter" or "Carriage
    Return". Not sure how to enter that in your case, since you
    haven't told us yet whether it's a DOS batch file or a Linux bash
    script, or what.



    ... Internal Error: The system has been taken over by sheep at line 19960
    === MultiMail/Linux v0.52
    --- SBBSecho 3.20-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (1:135/115)
  • From Paul Quinn@3:640/1384 to Joe Schweier on Wednesday, July 08, 2020 08:43:05
    Hi! Joe,

    On 07 Jul 20 06:22, you wrote to me:

    I want the script to "Hit" Enter after it passes a few
    commands....
    I don't have a batch file or shell script that does that so I
    have no functional example.
    When I was still using DOS, I used to use a BFDS util
    called qECHO to do this...

    got it.... added a | at the end of the statement

    Must be an OS/2 thing. I didn't read the kludges in your note till well after hitting [Send]. Thanks for that.

    Cheers,
    Paul.

    ... Some days it's just not worth chewing through the restraints.
    --- GoldED+/LNX 1.1.5-b20130515
    * Origin: Quinn's Rock - Live from Paul's Xubuntu desktop! (3:640/1384)
  • From mark lewis@1:3634/12 to Joe Schweier on Wednesday, July 08, 2020 10:15:27
    Re: Script
    By: Joe Schweier to ALL on Mon Jul 06 2020 12:07:38


    Writing a script...

    what kind of script? since you posted this in the frontdoor area, i'm guessing maybe something to do with scripted ftp transfers?

    and here's a simple question....

    they're all simple in the beginning... it is when the details are finally forthcoming that they aren't all so simple any more ;)

    how do I add a carrage return at the end of the statement??

    that depends... some add it automatically... others require something like \r\n, or just \n or just \r... it depends...


    )\/(ark
    --- SBBSecho 3.11-Linux
    * Origin: SouthEast Star Mail HUB - SESTAR (1:3634/12)
  • From mark lewis@1:3634/12 to Joe Schweier on Wednesday, July 08, 2020 10:17:14
    Re: Script
    By: Joe Schweier to Alan Ianson on Mon Jul 06 2020 21:22:20


    I want the script to "Hit" Enter after it passes a few commands....

    that's a whole other kettle of fish than what your original question appeared to ask...

    what is supposed to trigger this keystroke entry?


    )\/(ark
    --- SBBSecho 3.11-Linux
    * Origin: SouthEast Star Mail HUB - SESTAR (1:3634/12)
  • From Joe Schweier@1:342/200 to mark lewis on Wednesday, July 08, 2020 09:23:12
    Re: Script
    By: Joe Schweier to ALL on Mon Jul 06 2020 12:07:38


    Writing a script...

    what kind of script? since you posted this in the
    frontdoor area, i'm guessing maybe something to do with
    scripted ftp transfers?

    and here's a simple question....

    they're all simple in the beginning... it is when the
    details are finally forthcoming that they aren't all so
    simple any more ;)

    how do I add a carrage return at the end of the statement??

    that depends... some add it automatically... others
    require something like \r\n, or just \n or just \r... it
    depends...

    Using FD script files.... and if I add a | at the end of the line made it work...

    Thanx
    Joe

    ---
    * Origin: Joe's Mail System 1:342/200 -=joesbbs.com=- (1:342/200)
  • From Joe Schweier@1:342/200 to mark lewis on Wednesday, July 08, 2020 09:25:06
    Re: Script
    By: Joe Schweier to Alan Ianson on Mon Jul 06 2020
    21:22:20


    I want the script to "Hit" Enter after it passes a few commands....

    that's a whole other kettle of fish than what your
    original question appeared to ask...

    what is supposed to trigger this keystroke entry?

    Asked it the best way I could... and even if my solution isn't correct it seems to work... :) I added a | and the problem was solved.

    Thanx though
    Joe

    ---
    * Origin: Joe's Mail System 1:342/200 -=joesbbs.com=- (1:342/200)