sys info script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sys info script
# 1  
Old 06-20-2004
sys info script

Hi,

i need a shell script that write in a file called sys.txt this:

<output of date command>
HN <host name>
OS <OS name> <OS version>

I can have this info with uname command, but I can't write these in sys.txt.

Can any one help me?
# 2  
Old 06-20-2004
Just a two liner:

#!/bin/bash
(date; hostname; uname -sv) > sys.txt

Cheers
rte
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Script to find file types and info

I'm looking for a way to inventory files on a webserver into a CSV file, and am particularly interested in certain types of files, like .php, .cgi, .pl, .py, .sh, etc. but also want the ability to find all files, including those with no extension, or specified extensions, as above, including files... (1 Reply)
Discussion started by: spacegoose
1 Replies

2. Programming

Interactive Python 3.5+ sys.stdout.write() AND sys.stderr.write() bug?

(Apologies for any typos.) OSX 10.12.3 AND Windows 10. This is for the serious Python experts on at least 3.5.x and above... In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly. Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies

3. Shell Programming and Scripting

Dsh command - shell script - sys args?

Sorry, a noobie question....! I want to use a linux cluster to copy a list of files. I want to split the processing over 3 nodes so that each node gets (more or less) an equal share. My script (base.sh) to execute my copy script (copy.sh) looks something like: #!/bin/bash for NODE in 1 2... (4 Replies)
Discussion started by: pc2001
4 Replies

4. Shell Programming and Scripting

Script to copy certain info from several directories

Hi, I am writing a script to copy certain file name in txt file . It is working fine if I provide a single directory name (for example "/eos/uscms/store/user/pooja04//analysis2012/525/data/doubleele/2012/datav1/" ) where those specific files are present ending with *root . But I want to modify... (14 Replies)
Discussion started by: nrjrasaxena
14 Replies

5. Solaris

Can I restore from a flash archive without re-entering the basic sys info?

Hi I would like to be able to take adhoc backups of my systems using flash archive - flarcreate - and then restore from them to the same system without having to enter the basic configuration again when I boot from the Solaris CD. So, I'd like to be able to create a flar archive ... (1 Reply)
Discussion started by: emjs
1 Replies

6. Shell Programming and Scripting

script to pull info from my email?

Hi, I need help writing a script that would pull info from an email inbox and add it to an Evolution Calendar. I'm pretty sure I can google the commands to add the info to the calendar. The part that I really need help with is getting the info from the email into the command. Basically for... (6 Replies)
Discussion started by: xinix
6 Replies

7. Shell Programming and Scripting

Script to ssh to different server and get some info

Hi Friends, i am trying to write a script on server MACHINE1 to ssh to server MACHINE2 and fetch some information. i am using the following command: ChanCount=`ssh MACHINE2 "disp card all | grep Inserv | grep -v STATE | wc -l"` The "disp" command works well on MACHINE2 but not working... (2 Replies)
Discussion started by: am_yadav
2 Replies

8. Shell Programming and Scripting

possible to run script to enter info within a program?

hi, I am new to Unix and script writing so I was wondering if this would be possible and how I might do it. I've learned to write a basic script and the first step I need to do is to open a program (for genetic linkage). The program then requires me to enter a lot of information. Sort of line... (1 Reply)
Discussion started by: lianderthal
1 Replies

9. Shell Programming and Scripting

I need a script that script extract info from mail

Hello, I receive email once an hour that looks like: subject line: dialin body: ip address ip address . . sometimes the body has no ip address in it(blank mail) I want a script that will send to my email every 12 hours the ip numbers and the time and data something like: data,... (1 Reply)
Discussion started by: meravd
1 Replies

10. Filesystems, Disks and Memory

? on xferring user info from one sys to another

I've been setting up a duplicate system to replace an ailing ultra 2, same os version, same file & directory structure, same databases, now I just wanted to doublecheck that for user info, to copy over exact user login info, i need to copy the etc/passwd, etc/group and etc/shadow files. THis will... (6 Replies)
Discussion started by: kymberm
6 Replies
Login or Register to Ask a Question