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?
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?
Just a two liner:
#!/bin/bash
(date; hostname; uname -sv) > sys.txt
Cheers
rte