Archive for the ‘ shell script ’ Category

mbrback shell script creates a backup of your hard drive’s MBR and its partition table. You can then use mbrback to restore the MBR boot code, full MBR, or partition table from the backup files.
Read the rest of this entry

This problem is solve, issue was not with NTP but with xinetd service.
when i run these commands on 172.25.32.1 problem is solved.

chkconfig time-dgram on
chkconfig time-stream on
service xinetd restart

Unix Signals

A signal is a message which can be sent to a running process.

Signals can be initiated by programs, users, or administrators.

For example, to the proper method of telling the Internet Daemon (inetd) to re-read its configuration file is to send it a SIGHUP signal.
Read the rest of this entry

I’ve written a Perl script that connects to our central server for me and it allows me feed data so that I make a timesheet later. How do I run my script when I log out from Apple OS X or Linux / UNIX workstation using bash shell?

Almost all modern shell including bash allows you run run command when you log out. Typically this is used to:
Read the rest of this entry

ow do I find and replace (substitute) test using vi or vim text editor under UNIX / Linux / BSD or Apple OS X operating systems?

Both vi and vim text editor comes with substitute command for finding and replacing text.
Read the rest of this entry