Digital Man wrote to Bill McGarrity <=- DM> Re: hash script for crontab.. DM> By: Bill McGarrity to All on Thu Feb 09 2017 03:06 am > OK.. just little ole me again with a question.... > > Here is a bash script I put together to post a message in a general area... > > ==== Start > > #!/bin/bash > > > > cd /home/pi/sbbs/exec > > > > rm -r /home/pi/sbbs/exec/daystats.txt > > rm -r /home/pi/sbbs/exec/daygraph.txt > > > > cd /home/pi/binkd-1.1 > > > > perl binkdstat-wk42.pl -s -l binkd.log -p -1 +1 > > /home/pi/sbbs/exec/daystats.txt > > perl binkdstat-wk42.pl -l binkd.log -p -1 +1 -G -1 > > /home/pi/sbbs/exec/daygraph.txt > > > > chmod 777 /home/pi/sbbs/exec/daystats.txt > > chmod 777 /home/pi/sbbs/exec/daygraph.txt > > > > cd /home/pi/sbbs/exec > > > > ./smbutil -fSportNetHub -tAll -sBink_Daily_Graph -i > /home/pi/sbbs/exec/daygraph.txt /home/pi/sbbs/data/subs/1generals.shd > > > ./smbutil -fSportNetHub -tAll -sBinkD_Daily_Stats -i > /home/pi/sbbs/exec/daystats.txt /home/pi/sbbs/data/subs/1generals.shd > > > > ./sbbsecho -LINF > /home/pi/sbbs/events/outerror.log > > > ===== End > > I run the above script as a SU and this is the result. > > ===== Start > > (there is a significant amout of 'chatter' before this but it really wasn't > needed) > > Maintaining /home/pi/sbbs/data/subs/1generals > > Maintaining /home/pi/sbbs/data/subs/1generals hash file > > Loading index... > > 2 of 2 > > Done. > > > > Scanning for pre-flagged messages... > > 100% (0 pre-flagged for deletion) > > Scanning for read messages to be killed... > > 100% (0 flagged for deletion due to read status) > > > > !Error 2 opening home/pi/sbbs/exec/daystats.txt DM> Is that a typo or is the initial / (before home) actually missing?Nope, not a typo, I c&p'd directly. There was no / before home. > Now from what you can see in the 'script', I use chmod to allow anyone the > ability to do whatever they deemed fit with it, yet... why does smbutil have > an issue opening the file? DM> My guess: the missing slash.I would say so also but no where in the script did I miss putting the full pathincluding the beginning /.--BillTelnet: tequilamockingbirdonline.netWeb: bbs.tequilamockingbirdonline.net:81FTP: ftp.tequilamockingbirdonline.net:2121IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697Radio: radio.tequilamockingbirdonline.net:8010/live... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!--- MultiMail/Win32 v0.50 Synchronet TequilaMockingbird Online - Toms River, NJ
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 128:36:07 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |