• Quick Question

    From Hausmaus@AH2BBS to All on Monday, July 31, 2000 13:26:00
    Everyone,

    I'd like to have something that will tell me if the sysop is available or not when the user logs in (I'm making my own ANSI screens). I'm assuming that there's something in Baja (I can't print out everything right now to
    peruse)... I see how to call the script from an ANSI screen, but what command would I use? I've never done Baja programming before, so I'm a bit lost. :)

    Later,
    Sean

    If they give you ruled paper, write the other way.


    ---
    ■ Synchronet ■ AfterHours/2 BBS -- Carbondale, Illinois
  • From altere@DARKDIM to All on Friday, December 08, 2000 09:39:00
    Alright, I forgot how to do it!!!!
    I need to send a user a particular file that is NOT in the download directories but is at d:\blah\file.zip, I thought it was file_send but maybe I'm wrong.

    it starts a download but nothing is really sent, FDSZ (i cought for a split second) says File Not Found. The file is there and it exists. ideas?

    altere

    ---
    ■ Synchronet ■ Dark Dimension ßßS · telnet://dark.dimension-bbs.com · Hit Me!
  • From Digital Man to altere on Friday, December 08, 2000 08:14:17
    RE: Quick Question
    BY: altere to All on Fri Dec 08 2000 05:39 pm

    Alright, I forgot how to do it!!!!
    I need to send a user a particular file that is NOT in the download director but is at d:\blah\file.zip, I thought it was file_send but maybe I'm wrong.

    it starts a download but nothing is really sent, FDSZ (i cought for a split second) says File Not Found. The file is there and it exists. ideas?

    Show us your code. Make sure you're using either forward slashes or double-backslashes in the path (forward slahses are preferred as they are more portable, but the drive letter obviously is not).

    Rob
  • From altere@DARKDIM to Digital Man on Friday, December 08, 2000 14:36:00
    RE: Quick Question
    BY: Digital Man to altere on Fri Dec 08 2000 04:14 pm

    Show us your code. Make sure you're using either forward slashes or double-backslashes in the path (forward slahses are preferred as they are mo portable, but the drive letter obviously is not).

    compare_key d
    if_true
    file_send "../../rep/detail.zip"
    goto main
    end_if

    I've moved the file to c:\rep\detail.zip, going back two dir's from the exec to c:\ and then rep\

    It's really quite simple, just shows a menu and will eventuall call a script to run a report and generate the zip file (currently manual) so the only getcmd's that are currently there are d for download and q for quit. The rest is currently manual until I can atleast dl the file. :)


    ---
    ■ Synchronet ■ Dark Dimension ßßS · telnet://dark.dimension-bbs.com · Hit Me!
  • From Digital Man to altere on Friday, December 08, 2000 13:10:19
    RE: Quick Question
    BY: altere to Digital Man on Fri Dec 08 2000 10:36 pm

    Show us your code. Make sure you're using either forward slashes or double-backslashes in the path (forward slahses are preferred as they are portable, but the drive letter obviously is not).

    compare_key d
    if_true
    file_send "../../rep/detail.zip"
    goto main
    end_if

    I've moved the file to c:\rep\detail.zip, going back two dir's from the exec c:\ and then rep\

    It's really quite simple, just shows a menu and will eventuall call a script run a report and generate the zip file (currently manual) so the only getcmd that are currently there are d for download and q for quit. The rest is currently manual until I can atleast dl the file. :)

    You can't use relative paths in v3 (you don't know what the current directory will be at any given point). Use "%n../.." or something similar.

    Rob
  • From altere@DARKDIM to Digital Man on Friday, December 08, 2000 15:25:00
    RE: Quick Question
    BY: altere to Digital Man on Fri Dec 08 2000 10:36 pm

    file_send "../../rep/detail.zip"

    bah, this was the second attempt. After viewing some stuff I realize there is NO WAY this will work like this. I _DID_ however try send_file_via before all this and it never worked, I found out why.

    send_file_via z "../../rep/detail.zip" <-- won't work
    send_file_via Z "../../rep/detail.zip" <-- that'll work..

    so the problem is fixed for now.

    I saw a few mail cmds in the docs but nothing from what I saw that would email a specified file.

    for instance something like.

    compare_key e
    if_true
    mail_send_file "../../rep/detail.zip"
    goto hdr
    end_if

    there is a mail_send_netfile however it prompts for the filename. perhaps something like mail_send_file would only ask for the netmail address and send the specified file, unless thats already there and I just over looked it?

    At any rate, the send_file thing is fixed.

    thanks

    ---
    ■ Synchronet ■ Dark Dimension ßßS · telnet://dark.dimension-bbs.com · Hit Me!
  • From Digital Man to altere on Friday, December 08, 2000 13:27:45
    RE: Quick Question
    BY: altere to Digital Man on Fri Dec 08 2000 11:25 pm

    send_file_via Z "../../rep/detail.zip" <-- that'll work..

    Perhaps sometimes, but not always. You cannot (reliably) use relative paths in Synchronet v3.

    so the problem is fixed for now.

    I saw a few mail cmds in the docs but nothing from what I saw that would ema a specified file.

    There aren't any. You must use smbutil for this (which can easily be called from a Baja module).

    Rob