Path: Shell scripts :

Shell scripts Shell scripts...


web spider script
#!/bin/sh

wget --recursive --convert-links --domains www.textfiles.com www.textfiles.com/


samba message
#!/bin/sh

cat ./message.txt | smbclient -M $1 >>EOF


backup script
#!/bin/sh

rm -f jos.tar.gz
rm -f jos.zip

tar cvf jos.tar jos
gzip jos.tar
zip -r jos.zip jos

echo "put jos.tar.gz" | smbclient //192.168.1.2/pub -U "Guest%"
echo "put jos.zip" | smbclient //192.168.1.2/pub -U "Guest%"


script that has a string of it's self

#!/bin/sh

SELF_STRING=`cat ./self.sh`

echo ${SELF_STRING}


script that outputs it's self

#!/bin/sh

cat self.sh