OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Rick Smith on February 01, 2021, 08:52:53 am
-
Greetings again,
I am setting up hpt husky (fidonet mail tosser) and all works fine.. except that I do not know how to put the config for husky one the path... I put all the executables in \usr\bin so can call husky from anywhere no problem. Husky requires a config file which is in C:\config\ in Linux I would just create a symlink to the config no problem, how do I get it to see the config file, I’ve put it on the path, I’ve tried set hpt=c:\config none of it works. I can run it hpt -C c:\config\config but that’s not ideal... any suggestions?
Hope you are all well
Rick
-
Greetings again,
I am setting up hpt husky (fidonet mail tosser) and all works fine.. except that I do not know how to put the config for husky one the path... I put all the executables in \usr\bin so can call husky from anywhere no problem. Husky requires a config file which is in C:\config\ in Linux I would just create a symlink to the config no problem, how do I get it to see the config file, I’ve put it on the path, I’ve tried set hpt=c:\config none of it works. I can run it hpt -C c:\config\config but that’s not ideal... any suggestions?
Hope you are all well
Rick
Hi Rick,
a quick hack would be to use a desktop object, with the -C C:\config\config option in the command line call. Could you do with this?
Mentore
-
Hi Rick, try "set HPT=c:\\config" or "set HPT=c:/config".
-
Hi Rick, try "set HPT=c:\\config" or "set HPT=c:/config".
Doesn’t seem to fix it.. logically it should work? And I’m not sure about how to make a desktop object and suggested above..
Rick
-
The really simple way would just write a cmd file, hpt.cmd, consisting of something like,
hpt.exe -C C:\config\config
or, too not pollute your \usr\bin install, something like, (doing a lot of guessing)
SET PATH=c:\programs\hpt;%PATH%
SET BEGINLIBPATH=c:\programs\hpt\lib;%BEGINLIBPATH%
hpt.exe -C C:config\config
Then just have hpt.cmd on your PATH
-
Greetings everyone,
All great suggestions, I’m just calling it with the path to config each time... doesn’t seem I should have to but it works. Another question, can arca run services or daemons? I want to run say binkd in the background but don’t want it to have a “window” in fact lots of things I auto start I wish didn’t take up the task bar is there a way to correct that or is it just have to be?
Hope you are all well...
Rick
-
Hi Rick,
Use the detach command.
@detach example.exe 'parameters'
Be careful about where output may go. Some older programs do not like being detached.
-
Hi Rick
Yes, a common example these days being the CUPS daemon, cupsd.exe, which runs in an "invisible" window.
In case you do not have the CUPS daemon object the Properties for the object:-
Path and filename: L:\OS2\CMD.EXE
Parameters: /c detach J:\cups\sbin\cupsd.exe
Working directory: J:\CUPS\SBIN
For binkd you would need to change the Parameters and Working directory to match the location of binkd.exe - as well as the Drive Letter for CMD.EXE
Program objects are usually created by Right Mouse Click on program executable and select Create Program Object from popup menu which will fill in the Path, Parameters and Working directory automatically with those program executable details. Works great for PM apps; However, to start daemons in detached mode you need to change those details to use cmd.exe as the Program with the app you want to run detached as a Parameter.
Hope the above makes sense.
Regards
Pete
-
If the tasks on the task bar are bothering you, you can hide them. Right click on the task, and select Filter...