System Configuration Extraction


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting System Configuration Extraction
# 1  
Old 11-09-2007
System Configuration Extraction

Hi All,

Im trying to extract a bunch of systems configuration. I have created a file called data.txt and used the below scripts to run extraction of data.

Content of data.txt:
/etc/passwd
/etc/shadow
/etc/cron.allow

On the Linux terminal, I entered the following commands to execute my scripts:

<root>for i in 'cat data.txt'
> do
> cp $i Audit/
> done
<root>
_____________________________________________________
It is supposed to extract all the contents in data.txt and output to a file.
But it says 'no such file or directory'
Please help...appreciate lots...thanks.
# 2  
Old 11-09-2007
Do you have a directory called "Audit"?

Why don't you do

Code:
tar cf Audit.tar `cat data.txt`
tar tvf Audit.tar

# 3  
Old 11-09-2007
Hm...actually all i need is just to extract the system configuration and dump it in a .txt file.
Any idea how to do it.
I did created the Audit folder but it still display the same msg 'No directory found'
# 4  
Old 11-09-2007
Audit should *not* exist prior to this...

Code:
ls -ld data.txt
ls -ld Audit
for i in `cat data.txt`
do 
    cat $i >>Audit
done
ls -ld Audit

# 5  
Old 11-09-2007
ok. so i do not create the Audit yet. The script will create for me right.

alright..will try again...thanks alot mate!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Wich tool for check that two system have the same configuration

Hello , On a couple of system I have to check that systems have the same configuration. This system are part of manual cluster but when application are going to switch from one side to another side I would like to be sure I am not going to experience incidents. It is why I wonder if on the web... (2 Replies)
Discussion started by: xavier38450
2 Replies

2. Shell Programming and Scripting

my system configuration

Here with I am submitting a script , which is made for my use. It may be useful for anyone. I did't given in functions and all.... I am posting in this forum , because anyone can reply to this thread , for any change/addition. And yea , suggestions awaiting..:) #!/bin/bash # #... (3 Replies)
Discussion started by: linuxadmin
3 Replies

3. Solaris

system configuration

how to identify if the machine is sun4u ? is this model a sun4u machine ? Model : Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 300MHz), (2 Replies)
Discussion started by: sudhiroracle
2 Replies

4. Shell Programming and Scripting

To check the system configuration on Sun solaris

Hi, Could you pls. let me know what is cammand in unix to check the system configuration on Sun solaris. Thanks in advance. Cheers (2 Replies)
Discussion started by: krackjack
2 Replies

5. UNIX for Advanced & Expert Users

Script to get system configuration

Hi, We have >1000 UNIX boxes in our environment with various UNIX flavors like Solaris, HP-UX and Redhat Linux ES 3/4/5. We need to collect their system configuration like - No. of CPUs and their frequencies - RAM Size - No. of HDDs installed and their usage - Exact OS Version and its... (3 Replies)
Discussion started by: prvnrk
3 Replies

6. UNIX for Dummies Questions & Answers

Gathering system configuration

Hi there, I have been asked to write a script that gathers enough information on our Sun Solaris machines to be able to rebuild and configure them if they should go pop. My question is does anybody have any suggestions on the files that I need to take a copy of, to ensure that everything is... (4 Replies)
Discussion started by: hcclnoodles
4 Replies

7. UNIX for Dummies Questions & Answers

System boot configuration

On my PC I have two hard disks, the first with Windows 98 SE and the second with Linux Mandrake 8.0 (Traktopel). When I have installed Linux, it has modified the boot record of the 1st HD and it has added a graphic menu (LILO) for selecting the OS to use. By default, if I don't press a key, Linux... (2 Replies)
Discussion started by: robotronic
2 Replies

8. UNIX for Dummies Questions & Answers

How to the configuration of the system

How to know configuration information of the system. like (1) memory assigned for RAM - ? (2) How much is the Hard disk -? (3) processor I used uname and du -k commands. But i couldn't get information about RAM. which command gives this info (3 Replies)
Discussion started by: ds_sastry
3 Replies
Login or Register to Ask a Question