Subj : Some easy BAJA questions?
To   : High Spirit
From : Access Denied
Date : Wed Jan 08 2014 12:48 pm

Hello High,

On 08 Jan 14 10:31, High Spirit wrote to All:

HS> So I have my first Synchronet BAJA program almost complete. Along the
HS> way I run into a few possible issues that I need answered.

HS> Are there system variables the directory locations configured in SCFG?
HS> My program opens data files and I would like the files to be stored in
HS> the SBBS/DATA/<MYPROGRAM> folder. I am currently accomplishing this by
HS> using "/sbbs/data/<MYPROGRAM>" (linux path). Would the proper way be
HS> to use "../data/<MYPROGRAM>"? But that leads me to another question...
HS> What if the DATA folder is set to be somewhere else in SCFG?

That shouldn't matter. Synchronet by default starts in the exec directory, I
believe. So you have the ability to use "../" to go back one directory, and
continue from there. Using exact paths is not a problem, though.

HS> Is the DATA directory the best place to store files for External
HS> Programs or is there another directory that would be better?

No. External programs are usually stored in the /sbbs/xtrn directory.

HS> Linux vs. Windows... No not a debate... when working with paths and
HS> files... linux uses "/" while windows uses "\". Do I need to figure
HS> out what OS is being used and use the proper slash or will something
HS> interally figure it out?

I believe it corrects it for you depending on the OS you run. Though, whatever
OS you're running, you might want to at least try to use the proper way
according to your OS.

But if you're just asking in regards to any current default configurations,
and hoping you don't have to go through the whole thing and change all the
default settings, then no, you shouldn't have to.

Regards,
Nick

--- GoldED+/LNX 1.1.5-b20130910
* Origin: Dark Sorrow | darksorrow.us (723:1/701)
� Synchronet � thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)