On Sat, Nov 10, 2001 at 05:50:55PM -0000, Narayanamoorthy  Srinivasan wrote:
> 
>   I had the following doubts
>
>   1. what is the difference between .tgz and tar.gz files.
> 

None. In the days of yore with 8.3 filenames (mainly on DOS
BBSes to propagate Linux), .tar.gz was abbreviated to .tgz.
You can run regular tar operations like -xzvf, tzf on both.

>   2. Where can i find the list of network commands.
> 

No consolidated list. These are dependent upon packages in-
stalled. The best way to  know about  them  is to check out
man or info pages of any one and see the links to which all
are in "Also See". See the network packages itself, and see
the binaries and man/ doc pages installed.

>   3. I had a text file and .tgz file and I had to send it 
> to others as an attachment using crontab (for some speci-
> fic periods).  What are the steps for it?
> 

Dont understand the requirement. cron processes are set for
periodic repeat execution of  things  that  are changing. I
suppose the contents of your "text" and "tgz"  files  would
be changing constantly.

The problem here is that cron would  need  an executable to
run as dictated by crontab settings. You would have to make
scripts. For "text" files sending it in the body is easy ..
An untried snippet is below (should work though).

-----<snip>--------
#!/bin/sh
TODAY=$(date +%d/%m/%y)

ADDRS="[EMAIL PROTECTED],
       user2@localhost,
       [EMAIL PROTECTED]"

COPIES="[EMAIL PROTECTED],
        [EMAIL PROTECTED]"
               
mail -s "Atts for $TODAY" $ADDRS -c $COPIES < textfile.txt
-----</snip>-------

Sending as atts, however is a different ball game. You need
to do a base64, or uuencode transformation to the  proposed
atts, and use one of the dedicated att  supporting  command
line utilities (I forget, Suresh, pl help), or write a full
script and despatch with 'sendmail -t'.

For setting up crontab entries, look at the installed docs.

HTH

Bish
 


--
:
####[ Linux One Stanza Tip (LOST) ]############################

Sub : Hard Disk Upgrade                              LOST #037

Do you want to upgrade your Hard Disk ?   The following HOWTO 
is a must :
http://www.linuxdoc.org/HOWTO/mini/Hard-Disk-Upgrade/index.html

####<[EMAIL PROTECTED]>########################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to