TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: All
from: Sean Dennis
date: 2015-06-18 19:30:26
subject: Secondary scripts

Hello All,

This is an example of the two scripts that create the FILE_ID.DIZ files for 
the archives:

=== Cut ===
#!/bin/sh
cd /opt/mbse/micronet/infopack
if [ -e "file_id.diz" ]; then
  echo `rm file_id.diz`
fi
cat > file_id.diz
Micronet Information Network Infopack for
`date "+%A, %B %e, %Y"` (day `date +%j`).
All the information you need to join
Micronet, an active and friendly BBS mail
network.  We offer FTN, QWK and NNTP
networking.  For more info, please read
this infopack, visit a participating
BBS, or visit our webpage for more info.
http://outpostbbs.net/micronet.html
EOF
unix2dos /opt/mbse/micronet/infopack/file_id.diz
=== Cut ===

Notes:

That little trick with the "cat" command will output all of the
lines until 
the EOF tag to file_id.diz.  The second line of the FILE_ID.DIZ is translated 
by the shell to something like "Thursday, June 18, 2015 (day 169)."

unix2dos converts a text file from using just CR (UNIX-style) line endings to 
CRLF (DOS-style) line endings.

--Sean

... Reality is for people who can't cope with their drugs.
--- GoldED+/LNX 1.1.5-b20130910
* Origin: Outpost BBS * Johnson City, TN, USA (1:18/200)
SEEN-BY: 18/200 19/33 34/999 90/1 116/18 120/331 123/500 128/187 140/1 218/700
SEEN-BY: 226/160 230/150 261/38 100 266/404 267/155 280/464 282/1031 1056
SEEN-BY: 292/907 908 320/119 340/400 393/68 396/45 633/267 640/384 712/848
SEEN-BY: 770/1 2320/105
@PATH: 18/200 261/38 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.