by Ramesh Natarajan on December 25, 2010
Merry Christmas and Happy Holidays to all TGS Readers.
To wrap this year, I’ve collected 50 UNIX / Linux sysadmin related tutorials that we’ve posted so far. This is lot of reading. Bookmark this article for your future reference and read it whenever you get free time.
(more…)
by Balakrishnan Mariyappan on December 21, 2010
This article explains the command line options that can be passed to an expect script.
If you are new to expect scripting language, first start with our expect hello world example.
(more…)
by Ramesh Natarajan on December 21, 2010
Question: When I execute check_nrpe command with some arguments, I get the message “CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.”. How do I fix this issue?
Answer: The issue is very straight forward. check_nrpe doesn’t take any arguments by default. You should enable the command line arguments for check_nrpe as shown below.
(more…)
by SathiyaMoorthy on December 20, 2010
notify-send command sends notification to the desktop. It is non intrusive. It does not ask user to press ok, and it does not take any control away from the user.
This article explains how to send various types of desktop notifications using notify-send program.
(more…)
by SathiyaMoorthy on December 14, 2010
Question: I would like to execute ftp from inside a shell script. I would also like to provide the username and password required for the FTP file download inside the shell script itself. Can you explain me how to perform this bath ftp from a shell script?
Answer: For downloading / uploading files using ftp in batch mode, you can either user FTP scripting using HERE document from command line, or call FTP from a shell script as explained below.
(more…)
by Ramesh Natarajan on December 14, 2010
Question: On my DELL PowerEdge server, the front LCD displays “E1810 HDD 1 fault” error message. How do I fix this issue?
Answer: The message itself is self explanatory as it says “HDD 1 fault” indicating that the hard drive #1 failed. Following are my recommendations on what you can do to fix this.
(more…)
by SathiyaMoorthy on December 13, 2010
Question: I know how to execute a Unix command in the foreground. Can you please explain me how I can execute a Linux command in the background?
Answer: You can use one of the 5 methods explained in this article to execute a Linux command, or shell script in the background.
(more…)
by Balakrishnan Mariyappan on December 7, 2010
Linux mv command is used to move files and directories from one location to another. Apart from moving the files, it can also rename a file or directory.
(more…)