• Quick Question

    From Hausmaus@VERT/AH2BBS to All on Mon Jul 31 09:26:00 2000
    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@VERT/DARKDIM to All on Fri Dec 8 04:39:00 2000
    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@VERT to altere on Fri Dec 8 03:14:00 2000
    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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From altere@VERT/DARKDIM to Digital Man on Fri Dec 8 09:36:00 2000
    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@VERT to altere on Fri Dec 8 08:10:00 2000
    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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From altere@VERT/DARKDIM to Digital Man on Fri Dec 8 10:25:00 2000
    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@VERT to altere on Fri Dec 8 08:27:00 2000
    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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net