TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Benny Pedersen
from: Gert Andersen
date: 2011-11-21 00:27:06
subject: htick commands

Hello Benny!

Sun Nov 20 2011, Benny Pedersen wrote to Stas Degteff:

 SD>> #! /bin/sh

 SD>> SEGMENT=seg0102.pts
 SD>> DIR=/fido/nodelist

 SD>> /usr/bin/htick -q hatch "$DIR/$SEGMENT" PNT replace
"$SEGMENT" "Point 
 SD>> list segment of the 2:5080/102 node"

 BP>   ----- makedk begins -----
 BP>#!/bin/sh
 BP>dk-point 2:23 $1 DK-POINT.LST -crc
 BP>dkpc -ALL -LST:DK-POINT.LST
 BP>   ----- makedk ends -----

 BP>bash can use bash args :)

 BP>cat whtick
 BP>----
 BP>#!/bin/sh
 BP># $1 = dir to hatch from
 BP># $2 = file to hatch
 BP># $3 = description
 BP>htick -q hatch $1/$2 PNT replace $2 desc $3
 BP>----

 BP>call with: whtick . nodelist.999 "latest nodelist day 999"

 BP>Gert please note that replace should not have path to what dir its in, 
 BP>only old file to replace

 BP>please doit right

Yes it was a error I not have consider of by write to much for the replace file.
If we cold have function there using 4 value for extension where the bash
file and system with hatch check for we have a .zip or .rar file to send.

   ----- 4apps 
#!/bin/sh
# $1 = dir to hatch from
# $2 = files first name
# $3 = description
# $4 = files extension (.zip or .rar)
zip -z $2.$4 < header.hdr
htick -q hatch $1/$2.$4 lnx4apps replace $2.$4 desc $3
    ------
Then is only to remember to type or use the files name like abcdef and not
if it is .zip or .rar to hatch.
For both linux4kids lnx4apps and lnx4game.
The bash then could have the line say if the file is .zip is $4 = zip or if
it is a rar file then is $4 been to rar so $4 can change the value of
packer type and extension. Done by a statement or read the files extension.

Remember that from the 1. December is it not linux4kids more but then lnx4kids :)




  Take care,
            Gert

      - Get the best with linux - 

--- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
* Origin: * One step from heaven is not enough * (2:230/150)
SEEN-BY: 3/0 633/267 640/954 712/0 313 550 848 953
@PATH: 230/150 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™.