After using read name_of_tar to get the name of the tar file you want to create. You use it by changing
to:
Note that if you blindly accept a filename from a user and don't verify the contents and appropriately quote uses of the user supplied string, you open your account with all sorts of security holes.
The purpose of shc is to obscure the text of the script that is in the shell script. That won't help anyone if you give anyone the root password or make the script writeable or executable by anyone other than root.
Thanks for the fast reply.There is no problem for me regarding security because this script will be with only 4 persons who are my reliable co-workers.So no problem on that.
I want to encrypt the script just to avoid any accident in case the script falls into somebody's hands So you say shc can be used or I shouldnt?Sorry a little noob in this as this is my first time with scripting
---------- Post updated at 12:38 PM ---------- Previous update was at 12:36 PM ----------
Quote:
Originally Posted by pamu
Welcome to the Unix.com forum.
Try something like this...
Thanks for your reply but what is the use of second echo in the above code???I mean this:
Hi All
Can someone pls guide me if there any utility to compress file on windows & uncompress on vxworks
I tried as -
- compressed some folders on windows ... i created .tar ( to maintain directory structure ) and compressed to .gz format.
- on VxWorks i have uncompressed it to .tar... (1 Reply)
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Hi All,
I am not one of the super users / root for AIX 5.3 system.
There is a filesystem
Say
/DIR1 and its has several subdirs in it say SUBDIR1, SUBDIR2, SUBDIR3.
Can I create a tar file for all files under DIR1 and SUBDIR1, SUBDIR3. Excluding SIBDIR2?
Also how can I preserve... (2 Replies)
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
Quick question,
is it possible to make a Tar of completely directory and placing the tar file in it (will this cause even the tar file to tarred ?)
sample:
/opt/freeware/bin/tar -cvf - /oracle | gzip > /oracle/backup.tgz
will the tar file backup.tgz also include backup.tgz ?
i tried... (5 Replies)
Coming from this thread, just wondering if there is an option to check if the Tar of the files/directory will be without any file-errors without actually making the tar.
Scenario:
Let's say you have a directory of 20GB, but you don't have the space to make Tar file at the moment, and you want... (14 Replies)