Hiya Nick..
-=> Accession wrote to Bill McGarrity <=-
Ac> On Thu Feb 09 2017 03:06:00, Bill McGarrity wrote to All:
BM> Here is a bash script I put together to post a message in a general
BM> area...
BM> ==== Start
BM> #!/bin/bash
BM> cd /home/pi/sbbs/exec
BM> rm -r /home/pi/sbbs/exec/daystats.txt
BM> rm -r /home/pi/sbbs/exec/daygraph.txt
BM> cd /home/pi/binkd-1.1
BM> perl binkdstat-wk42.pl -s -l binkd.log -p -1 +1 >
BM> /home/pi/sbbs/exec/daystats.txt
BM> perl binkdstat-wk42.pl -l binkd.log -p -1 +1 -G -1 >
BM> /home/pi/sbbs/exec/daygraph.txt
BM> chmod 777 /home/pi/sbbs/exec/daystats.txt
BM> chmod 777 /home/pi/sbbs/exec/daygraph.txt
BM> cd /home/pi/sbbs/exec
BM> ./smbutil -fSportNetHub -tAll -sBink_Daily_Graph -i
BM> /home/pi/sbbs/exec/daygraph.txt /home/pi/sbbs/data/subs/1generals.shd
Ac> It looks like here you have a space between -i and the path to
Ac> daygraph.txt. There shouldn't be one.
If I remove the space after the -i I get a: Unknown opt '/'
If I remove the / and the space after the -i I get: Umknown opt 'h'
If I leave the space and remove the / after the -i I get: !Error 2 opening
ome/pi/sbbs/exec/daystats.txt
(Notice it always seems to remove the first character after the -i
Ac> Also, I believe you can use regular spacing as long as you use quotes
Ac> (ie: -s"BinkD Daily Graph").
Done. Once I get the other stuff working hopefull that will take care of the _
issue.
BM> ./smbutil -fSportNetHub -tAll -sBinkD_Daily_Stats -i
BM> /home/pi/sbbs/exec/daystats.txt /home/pi/sbbs/data/subs/1generals.shd
Ac> Same with the above.
BM> ./sbbsecho -LINF > /home/pi/sbbs/events/outerror.log
BM> !Error 2 opening home/pi/sbbs/exec/daystats.txt
BM> Returning error code: 1
Ac> Notice in the error above there is no "/" before "home". This is most
Ac> likely because there is a space between the option and the path to the
Ac> text file you wish to import.
Nope, as explained above... :/
--
Bill
Telnet: tequilamockingbirdonline.net
Web: bbs.tequilamockingbirdonline.net:81
FTP: ftp.tequilamockingbirdonline.net:2121
IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
Radio: radio.tequilamockingbirdonline.net:8010/live
... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
--- MultiMail/Win32 v0.50
■ Synchronet ■ TequilaMockingbird Online - Toms River, NJ
|