Category Archives: Linux

Keep log files by copying into new directory unix

cp -pR logs logs`date +$d%m%y%T` Creates a timestamped copy directory named like “logs041015:44:42″.

Posted in Linux | Leave a comment

/etc/cron.d not working fails

Files in /etc/cron.d only work if they are not executable files (at least that is the case on newer version of unix/linux).

Posted in Linux | Leave a comment

Use ftp in shell scripts with password in .netrc

ftp can be used in shell scripts by specifying the ftp password in a .netrc file. On the source server create/edit this file: $ vi $HOME/.netrc Add in a line with the username password details: machine targetservername login targetusername password … Continue reading

Posted in Linux | Leave a comment

Free X windows emulator for running Oracle Installer

It’s often a pain getting X windows GUIs like the Oracle Installer and DBCA to run on Micrsoft Windows PC clients. Emulators like Reflection-X, KEA-Term, and Exceed work ok, but they cost money to licence and require source media and … Continue reading

Posted in Installs, Linux | 7 Comments

Old c compilers needed for 9i on Red Hat Linux

9i on Red Hat Linux (with the exception apparently 32-bit on RH3) won’t install unless you revert the c compilers back to old versions. Horrible. But fixed (I am told) with oracle 10g. And its not something you necessarily want … Continue reading

Posted in Installs, Linux, Old | Leave a comment

useful simple vi commands for DBAs

These 32 are the only commands I ever seem to use in vi: Command Effect :.= find out the current line number :1 go to line 1 Ctrl-d page down Ctrl-u page up Shift-G go to end of file i … Continue reading

Posted in Linux | 13 Comments