Creating your first crontab job is a three-part process: Prepare the absolute path to the program or script that you want to run Create a text file containing a line to schedule the job as described above for crontab fields Upload the text file to your system cron When preparing program to run or creating scripts to run remember that crontab jobs are background tasks. There is no terminal attached to a crontab job so there should be no print statements that normally write to the screen. (It is possible to redirect such print statements.) The same consideration hold true for requesting user input. Let’s assume that we want to…
-
-
openssl and Signatures
A checksum can be used to determine if a file has been tampered with at a later date. To run a checksum use the following command: openssl dgst -HASHTYPE path_to_file HASHTYPE would then be md2, md4, md5, mdc2, rmd160, sha or sha1. Let’s go ahead and do a checksum of our smb.conf file: openssl dgst -md5 /var/db/smb.conf You should then see output similar to the following: MD5(/var/db/smb.conf)= e4b58a63c6682b298aeca3ad40734c1e MD5(/var/db/smb.conf)= e4b58a63c6682b298aeca3ad40734c1e
-
Linux: Poptop
Poptop is an open source PPTP VPN server. It’s a bit easier to use than openVPN but doesn’t have a lot of the features available there. There is no L2TP but you can run PPTP.
-
Add a comma to the end of every line of a file in bash
Add a comma to the end of every line of a file in bash: sed 's/$/,/'
-
FTP Command Line and Automation
The ftp command that runs on a Mac is similar to that from any other platform, including Windows – and not much has changed with regard to FTP for a long, long time. When using FTP you will login to an FTP server, then issue some commands, one of which will kill your session to the host. The commands you issue during an FTP session are issued in an interactive mode of the shell, where you are actually running them against the target server ls – list the contents of a directory on the FTP server cd – change the working directory on the FTP server pwd – show the…
-
Open Source Projects at SGI
http://oss.sgi.com
-
Dual Chroot'd DNS Servers
Sweet: http://www.etherboy.com/dns/chrootdns.html
-
Splunk.com
Best log analyzer ever. For centralizing and reviewing logs on lots of servers it’s a must have.
-
Directory Listing with Permissions
To list the files in a directory with the permissions for files, use the following command (assuming you’re in the working directory you would like to list files for: ls -al
-
Linux Kernel Documentation
http://kernelbook.sourceforge.net/