DirectoryComputersBlog Details for "My SysAd Blog"

My SysAd Blog

My SysAd Blog
My UNIX-based blog covers a collection of tips for installations, programming, scripting, configuration, SQL, maintenance, troubleshooting, and command line syntax. What exactly is UNIX? Unix stands for UNiplexed Information and Computing System--ori
Articles: 1, 2, 3, 4, 5, 6, 7

Articles

Add DES Credential For a Client Workstation
2008-03-02 12:37:00
If you want to add a credential for a workstation, you will need to make an entry into the niscred.org_dir table on the server. This example demonstrates what is done on the server side and workstation side. There are third party tools out there to manage credentials, but personally I like using the command line. Here is what a colleague and I did to support a NIS+ server change.On ServerC shell# setenv PATH $PATH:/usr/lib/nisBourne or Korn Shell# PATH=$PATH:/usr/lib/nis; export PATH# nisclient -c -o -d esofthub.com esoft# nisaddcred -p unix.esoft@esofthub.com -P esoft.esofthub.com. des# nisgrpadm -a admin.esofthub.com esoft.esofthub.com.On Workstation C shell# setenv PATH $PATH:/usr/lib/nisBourne or Korn Shell# PATH=$PATH:/usr/lib/nis; export PATH# nisclient -i -d esofthub.com -h esoftsvr -a IPADDRESS
More About: Credential , Client
Dump Sybase Database to File
2008-02-27 12:11:00
I had a reader ask me offline how to transfer a legacy database to another instance of a database management system (DBMS) on a separate server/workstation. The reader was trying to extract historical statistics via a test database (on a test server) without affecting the production database. I recommended dumping the entire database to a flat file and then writing (tar) the file to tape. I was uncertain if my response answered the reader's initial question but this is one way I dealt with a relatively small database (less than 50 megabytes) a few years ago. By the way, the sequence below assumes the receiving Sybase database was appropriately named and sized when it was created.Login into production DBMS1> use master2> go1> dump database yourdb to "/tmp/mydatabase.dat"2> go1> quit2> goArchive flat file to tape (assumes a tape drive is attached)# cd /tmp# tar cvfp /dev/rmt/0 mydatabase.datMove tape media to receiving server/workstation (assumes a tape drive is attached)# cd /tmp-...
More About: File , Database
Dump Sybase Database to File
2008-02-27 12:11:00
I had a reader ask me offline how to transfer a legacy database to another instance of a database management system (DBMS) on a separate server/workstation. The reader was trying to extract historical statistics via a test database (on a test server) without affecting the production database. I recommended dumping the entire database to a flat file and then writing (tar) the file to tape. I was uncertain if my response answered the reader's initial question but this is one way I dealt with a relatively small database (less than 50 megabytes) a few years ago. By the way, the sequence below assumes the receiving Sybase database was appropriately named and sized when it was created.Login into production DBMS1> use master2> go1> dump database yourdb to "/tmp/mydatabase.dat"2> go1> quit2> goArchive flat file to tape (assumes a tape drive is attached)# cd /tmp# tar cvfp /dev/rmt/0 mydatabase.datMove tape media to receiving server/workstation (assumes a tape drive is attached)# cd /tmp-...
More About: File , Database
Troubleshooting the "su: No shell" error
2008-02-24 10:54:00
The other day we had a problem with a system account. At first we did not notice the ?su: No shell? error on the console (headless server) but after a few reboots it was fairly evident. The message gave us enough feedback to determine the substitute user or su command was having a problem with a particular account. To ascertain which system account, we invoked a sequential step-through of the startup scripts.In the end, it appears that a third party application used to manage NIS+ had locked and changed the account?s shell to something unknown (by design) due to multiple login failures. The account was restored to its original shell.# su - esofthub -c "myscript"su: No shellView locked account# niscat passwd.org_dir | grep esofthubesofthub:*LK*:1005:10:esofthub test:/home/esofthub:/bin/sh.locked:13933: :::::Modify with third party applicationAfter the modification# su - esofthub -c "myscript"Visit Ucertify's challenge winners' blogs: Ax0N and armando For Files OnlyIf you are using t...
More About: Shell , Error , Troubleshooting
Troubleshooting the "su: No shell" error
2008-02-24 10:54:00
The other day we had a problem with a system account. At first we did not notice the ?su: No shell? error on the console (headless server) but after a few reboots it was fairly evident. The message gave us enough feedback to determine the substitute user or su command was having a problem with a particular account. To ascertain which system account, we invoked a sequential step-through of the startup scripts.In the end, it appears that a third party application used to manage NIS+ had locked and changed the account?s shell to something unknown (by design) due to multiple login failures. The account was restored to its original shell.# su - esofthub -c "myscript"su: No shellView locked account# niscat passwd.org_dir | grep esofthubesofthub:*LK*:1005:10:esofthub test:/home/esofthub:/bin/sh.locked:13933: :::::Modify with third party applicationAfter the modification# su - esofthub -c "myscript"Visit Ucertify's challenge winners' blogs: Ax0N and armando For Files OnlyIf you are using t...
More About: Shell , Error , Troubleshooting
Using Z Shell Brace Expansion to Create Test Files
2008-02-18 13:20:00
Here is a convenient way of creating test files using the powerful Z Shell . I have been using this shell for a short while, and I am quickly becoming a fan of it. I used it to support transfer speed tests. To support these tests, I created a specified number of files that varied in size (1MB, 5MB, 10MB, 50MB, 100MB, 500MB, etc). Here is a straightforward one-liner mkfile example of creating 50 x 12MB files and a few others using zsh?s brace expansion.# zsh# mkfile 12m {1..50}.tst# ls -ltotal 122960-rw------T 1 root other 12582912 Feb 18 20:04 1.tst-rw------T 1 root other 12582912 Feb 18 20:04 2.tst-rw------T 1 root other 12582912 Feb 18 20:04 3.tst-rw------T 1 root other 12582912 Feb 18 20:04 4.tst-rw------T 1 root other 12582912 Feb 18 20:04 5.tst...Other examples...# touch {1..5}.testfile# ls -ltotal 0-rw-r--r-- 1 root other 0 Feb 18 20:07 1.testfile-rw-r--r-- 1 root other 0 Feb 18 20:07 2.testfile-rw-r--...
More About: Test , Files , Create , Expansion
Using Z Shell Brace Expansion to Create Test Files
2008-02-18 13:20:00
Here is a convenient way of creating test files using the powerful Z Shell . I have been using this shell for a short while, and I am quickly becoming a fan of it. I used it to support transfer speed tests. To support these tests, I created a specified number of files that varied in size (1MB, 5MB, 10MB, 50MB, 100MB, 500MB, etc). Here is a straightforward one-liner mkfile example of creating 50 x 12MB files and a few others using zsh?s brace expansion.# zsh# mkfile 12m {1..50}.tst# ls -ltotal 122960-rw------T 1 root other 12582912 Feb 18 20:04 1.tst-rw------T 1 root other 12582912 Feb 18 20:04 2.tst-rw------T 1 root other 12582912 Feb 18 20:04 3.tst-rw------T 1 root other 12582912 Feb 18 20:04 4.tst-rw------T 1 root other 12582912 Feb 18 20:04 5.tst...Other examples...# touch {1..5}.testfile# ls -ltotal 0-rw-r--r-- 1 root other 0 Feb 18 20:07 1.testfile-rw-r--r-- 1 root other 0 Feb 18 20:07 2.testfile-rw-r--...
More About: Test , Files , Create , Expansion
Permanently Remove Data on UNIX Hard Drives
2008-02-13 16:37:00
It is fairly common for companies to dispose of their obsolete hard drives. However, most of them want to ensure all data is shredded from the hard drives. Finding a Windows-based wipe program was fairly easy, but finding a UNIX-based program took a little more searching. BCWipe is a program that will wipe a UNIX-based hard drive clean. The BCWipe website claims their multi-platform UNIX version is intended to give you a confidence that your deleted files cannot be recovered by an intruder. BCWipe repeatedly overwrites special patterns to the files to be destroyed.Note: Most likely you will have to compile the source code for your particular platform architecture.BCWipe for UNIX offers the following wiping schemes per their site.1. US DoD 5220.22-M standard (7 passes with verification)2. User-defined number of passes3. Peter Gutmann's 35 pass schemeBCWipe for UNIX is designed as a multi-platform solution. Here is their supported list of various UNIX flavors.Linux 2.0-2.6FreeBSD 3...
More About: Unix , Data , Hard , Hard drives
Permanently Remove Data on UNIX Hard Drives
2008-02-13 16:37:00
It is fairly common for companies to dispose of their obsolete hard drives. However, most of them want to ensure all data is shredded from the hard drives. Finding a Windows-based wipe program was fairly easy, but finding a UNIX-based program took a little more searching. BCWipe is a program that will wipe a UNIX-based hard drive clean. The BCWipe website claims their multi-platform UNIX version is intended to give you a confidence that your deleted files cannot be recovered by an intruder. BCWipe repeatedly overwrites special patterns to the files to be destroyed.Note: Most likely you will have to compile the source code for your particular platform architecture.BCWipe for UNIX offers the following wiping schemes per their site.1. US DoD 5220.22-M standard (7 passes with verification)2. User-defined number of passes3. Peter Gutmann's 35 pass schemeBCWipe for UNIX is designed as a multi-platform solution. Here is their supported list of various UNIX flavors.Linux 2.0-2.6FreeBSD 3...
More About: Unix , Data , Hard , Hard drives
Automounting a User?s Home Directory
2008-02-09 17:26:00
A couple colleagues of mine were trying to execute a program on the server that required a special initialization environment, which was called from the /home/loginuser path. The login, loginuser, was not part of the server?s name service domain. It was a local account on a remote workstation. After a little discussion, they added this syntax to the /etc/auto_home file. Here is a run to illustrate the aforementioned.# vi /etc/auto_home# Home directory map for automounter#loginuser esoft:/export/home/USERS/&#* server:/export/home/USERS/&#+auto_hom e:wq!# automount -vautomount: /net mountedautomount: /home mountedautomount: /xfn mountedautomount: /export/opt mountedautomount: no unmounts# cd /home/loginuser# ls -a. .. .cshrc myblog esoftfile topblog
More About: Directory , User , Tomo
Automounting a User?s Home Directory
2008-02-09 17:26:00
A couple colleagues of mine were trying to execute a program on the server that required a special initialization environment, which was called from the /home/loginuser path. The login, loginuser, was not part of the server?s name service domain. It was a local account on a remote workstation. After a little discussion, they added this syntax to the /etc/auto_home file. Here is a run to illustrate the aforementioned.# vi /etc/auto_home# Home directory map for automounter#loginuser esoft:/export/home/USERS/&#* server:/export/home/USERS/&#+auto_hom e:wq!# automount -vautomount: /net mountedautomount: /home mountedautomount: /xfn mountedautomount: /export/opt mountedautomount: no unmounts# cd /home/loginuser# ls -a. .. .cshrc myblog esoftfile topblog
More About: Directory , User
Troubleshoot POP3 Mail Server with Telnet
2008-02-05 14:46:00
I am finally getting an opportunity to write a post. I have been so busy with upgrades lately and had to put off writing for awhile.The other day I had a number of users complaining about not being able to fetch mail to their mail client, MS Outlook. As usual, I attempted to duplicate the error. The error message was reporting unable to connect to the mail server. At that point, I decided to telnet the Post Office Protocol or POP3 port, 110, via the command line interface. Sure enough, I had a problem.Note: The ?before and after? command line examples are only for illustration purposes.# telnet server 110Trying 192.1xx.xx.xxx...telnet: Unable to connect to remote host: Connection refusedI started thinking there was a problem with the inetd.conf file. After reviewing the file, I noticed the pop3 service was commented out. The appropriate change was made and inetd was restarted. Problem resolved.# telnet server 110Trying 192.1xx.xx.xxx...Connected to server.Escape character is '^]'...
More About: Mail , Server , Troubleshoot , Telnet
Troubleshoot POP3 Mail Server with Telnet
2008-02-05 14:46:00
I am finally getting an opportunity to write a post. I have been so busy with upgrades lately and had to put off writing for awhile.The other day I had a number of users complaining about not being able to fetch mail to their mail client, MS Outlook. As usual, I attempted to duplicate the error. The error message was reporting unable to connect to the mail server. At that point, I decided to telnet the Post Office Protocol or POP3 port, 110, via the command line interface. Sure enough, I had a problem.Note: The ?before and after? command line examples are only for illustration purposes.# telnet server 110Trying 192.1xx.xx.xxx...telnet: Unable to connect to remote host: Connection refusedI started thinking there was a problem with the inetd.conf file. After reviewing the file, I noticed the pop3 service was commented out. The appropriate change was made and inetd was restarted. Problem resolved.# telnet server 110Trying 192.1xx.xx.xxx...Connected to server.Escape character is '^]'...
More About: Mail , Server , Troubleshoot , Telnet
IT Certification Self-Help Portal
2008-01-22 18:20:00
I found this technical self-help website, uCertify.com, very interesting and wanted to share it with some of the readers. The company has been online since 1999. They are offering PrepKits which are interactive software programs that help you learn, track your progress, identify areas for improvement and simulate the actual exam. I sampled a few of their demo quizzes, but I mainly focused on their database kits because I am thinking about an Oracle certification in the near-term. On my initial run through, I found the practice test questions to be relevant and comprehensive, not just some cheesy Q&A effort.I downloaded their Oracle 10G kit and obtained a key for it. It was a quick download via VDSL and was extremely easy to setup. I did not have any problems obtaining a key from uCertify. For the premium version, I took a couple of its timed practice tests along with its timed final. I thought the final test was a bit more difficult than the practice tests which was probably by ...
More About: Portal , Certification
IT Certification Self-Help Portal
2008-01-22 18:20:00
I found this technical self-help website, uCert ify.com, very interesting and wanted to share it with some of the readers. The company has been online since 1999. They are offering PrepKits which are interactive software programs that help you learn, track your progress, identify areas for improvement and simulate the actual exam. I sampled a few of their demo quizzes, but I mainly focused on their database kits because I am thinking about an Oracle certification in the near-term. On my initial run through, I found the practice test questions to be relevant and comprehensive, not just some cheesy Q&A effort.I downloaded their Oracle 10G kit and obtained a key for it. It was a quick download via VDSL and was extremely easy to setup. I did not have any problems obtaining a key from uCertify. For the premium version, I took a couple of its timed practice tests along with its timed final. I thought the final test was a bit more difficult than the practice tests which was probably by ...
More About: Portal , Certification
Parse XML Records with Perl Script
2008-01-12 11:42:00
A colleague, Mahlon Anderson, and I were thinking of ways of splitting up a fairly large XML file, which had approximately 27K records in it. I wanted to split this file into smaller ones, each having about 250-300 records, because my former web host service kept complaining about constant CPU quota overloads during uploads.With the service, I had plenty disk space and plenty bandwidth but limited CPU usage. Apparently, I didn?t notice that sticky point in the fine print while signing up for the service. At any rate, here is Mahlon's "quick and dirty" XML Perl parser. By the way, a different and more extensive parsing implementation was later used as the permanent solution.# vi parser.pl#!/usr/bin/perl$file = @ARGV[0];open(_FH, "$count = 0; $files_counter=1;$max_records = 300; while (_FH){ if($count == 0) { $filename = $file . "_part_" . $files_counter; open(FH2, "> $filename") or die "Unable to open file: $filename "; $count++; } ...
More About: Script , Records , Cord
Split XML Records with Perl Script
2008-01-12 11:42:00
A colleague, Mahlon Anderson, and I were thinking of ways of splitting up a fairly large XML file, which had approximately 27K records in it. I wanted to split this file into smaller ones, each having about 250-300 records, because my former web host service kept complaining about constant CPU quota overloads during uploads. A Perl splitter quickly came to mind.With the web host service, I had plenty disk space and plenty bandwidth but limited CPU usage. Apparently, I didn?t notice that sticky point in the fine print while signing up for the service.A different splitting implementation was later used as the permanent solution, but here is Mahlon's "quick and dirty" XML Perl splitter-- printed with his permission of course.# vi split.pl#!/usr/bin/perl$file = @ARGV[0];open(_FH, "$count = 0;$files_counter=1;$max_records = 300; while (_FH){if($count == 0){$filename = $file . "_part_" . $files_counter;open(FH2, "> $filename") or die "Unable to open file: $filename ";$count++;}if (grep ...
More About: Script , Records , Split
FEATURE_ERROR_USER_OPEN_NO_ACCESS
2008-01-11 03:45:00
As I do practically every morning along with millions of others around the world, I logged into my Yahoo.com email account to check mail. To my chagrin, I was unable to login, and to make matters worse, my user ID/password combination wasn't recognized by the system. My first thoughts were "CAPS LOCK," or forgotten (which I rarely do) password , or hacked, or TOS violations (on what basis??) or corrupted cookies ? who the heck knows. Then I decided to have my password recovered to an alternate email address (gmail), but I was still darn sure I knew my password. For ?you know what and grins,? I made an attempt to recover it. But my user ID wasn't even recognized by the system. Here is the message I received after entering my user ID and answering a question about ever using a credit card or not.----Sorry That You're Having Trouble Signing InWe know that not being able to sign in can be frustrating, so we'll try to make this as quick and easy as possible. To get started, enter yo...
FEATURE_ERROR_USER_OPEN_NO_ACCESS
2008-01-11 03:45:00
As I do practically every morning along with millions of others around the world, I logged into my Yahoo.com email account to check mail. To my chagrin, I was unable to login, and to make matters worse, my user ID/password combination wasn't recognized by the system. My first thoughts were "CAPS LOCK," or forgotten (which I rarely do) password , or hacked, or TOS violations (on what basis??) or corrupted cookies ? who the heck knows. Then I decided to have my password recovered to an alternate email address (gmail), but I was still darn sure I knew my password. For ?you know what and grins,? I made an attempt to recover it. But my user ID wasn't even recognized by the system. Here is the message I received after entering my user ID and answering a question about ever using a credit card or not.----Sorry That You're Having Trouble Signing InWe know that not being able to sign in can be frustrating, so we'll try to make this as quick and easy as possible. To get started, enter yo...
Finding Open Files with lsof Command
2008-01-09 12:30:00
When a file is in use by a process, it is possible to delete the file - OR at least it may appear that is the case. The filename is no longer visible via the ls command, but it is there until the process using it exits.For example, let's say Sysadmin1 runs a sniffer process in the background to capture and save packets to a file. The capture file starts growing bigger over time. Instead of killing the process, he/she simply deletes the capture file, thinking this will recover the disk space. It doesn't. Believing everything is well, Sysadmin1 goes home.Now Sysadmin2 shows up and notices the box is running out of disk space. Naturally, the admin wants to figure out what?s rapidly consuming disk space. The easiest way for the SysAd to locate the growing file is to use the lsof command.Another instance the lsof would be helpful is when a filesystem refuses to unmount due to open files.Here are a few practical examples of using the lsof command.To list all the open files on the var ...
More About: Open , Files , Command
Finding Open Files with lsof Command
2008-01-09 12:30:00
When a file is in use by a process, it is possible to delete the file - OR at least it may appear that is the case. The filename is no longer visible via the ls command, but it is there until the process using it exits.For example, let's say Sysadmin1 runs a sniffer process in the background to capture and save packets to a file. The capture file starts growing bigger over time. Instead of killing the process, he/she simply deletes the capture file, thinking this will recover the disk space. It doesn't. Believing everything is well, Sysadmin1 goes home.Now Sysadmin2 shows up and notices the box is running out of disk space. Naturally, the admin wants to figure out what?s rapidly consuming disk space. The easiest way for the SysAd to locate the growing file is to use the lsof command.Another instance the lsof would be helpful is when a filesystem refuses to unmount due to open files.Here are a few practical examples of using the lsof command.To list all the open files on the var ...
More About: Open , Files , Command
Setup Mail Client on UNIX-based System
2008-01-07 14:24:00
In the last post, a mail server setup was demonstrated. This post will demonstrate the setup of a mail client. Again, the setup of mail client is fairly straightforward. Here is the run.On the client side, ensure the /var/mail directory is present.# ls -l /var/mailIf not, create it.# cd /var# mkdir mailNow modify the client's /etc/vfstab file# vi /etc/vfstabesoft:/var/mail - /var/mail nfs - yes -:wq!Now mount /var/mail# mount /var/mailVerify the /var/mail is actually being shared from the mail server# cd /var/mail# df -k .
More About: Mail , System , Unix , Setup , Client
Setup Mail Client on UNIX-based System
2008-01-07 14:24:00
In the last post, a mail server setup was demonstrated. This post will demonstrate the setup of a mail client. Again, the setup of mail client is fairly straightforward. Here is the run.On the client side, ensure the /var/mail directory is present.# ls -l /var/mailIf not, create it.# cd /var# mkdir mailNow modify the client's /etc/vfstab file# vi /etc/vfstabesoft:/var/mail - /var/mail nfs - yes -:wq!Now mount /var/mail# mount /var/mailVerify the /var/mail is actually being shared from the mail server# cd /var/mail# df -k .
More About: Mail , System , Unix , Setup , Client
Setup Mail Server on UNIX-based System
2008-01-07 14:04:00
The last post made me think about setting up a mail server on my eBay purchased UNIX-based box at home. As I recalled from a few years ago, this was a fairly straightforward task to accomplish. The task primarily dealt with ensuring the server?s /var partition was amply sized and its /var/mail directory exported. And lastly, it was a NFS server.On the mail server:Ensure attribute information is correct:# cd /var# ls -ld maildrwxrwxrwt 4 root mail 512 Jan 5 22:38 mailModify the dfstab file# cd /etc/dfs# vi dfstabshare -F nfs -o rw -d "mailbox directory" /var/mail:wq!# shareall# cd /etc/init.d# ./nfs.server startVerify /var/mail is shared.# dfsharesRESOURCE SERVER ACCESS TRANSPORT esoft:/var/mail esoft - -Setup mail client
More About: Mail , System , Unix , Server
Setup Mail Server on UNIX-based System
2008-01-07 14:04:00
The last post made me think about setting up a mail server on my eBay purchased UNIX-based box at home. As I recalled from a few years ago, this was a fairly straightforward task to accomplish. The task primarily dealt with ensuring the server?s /var partition was amply sized and its /var/mail directory exported. And lastly, it was a NFS server.On the mail server:Ensure attribute information is correct:# cd /var# ls -ld maildrwxrwxrwt 4 root mail 512 Jan 5 22:38 mailModify the dfstab file# cd /etc/dfs# vi dfstabshare -F nfs -o rw -d "mailbox directory" /var/mail:wq!# shareall# cd /etc/init.d# ./nfs.server startVerify /var/mail is shared.# dfsharesRESOURCE SERVER ACCESS TRANSPORT esoft:/var/mail esoft - -Setup mail client
More About: Mail , System , Unix , Server
User Unable to POP Incoming Mail via MS Outlook
2008-01-05 14:30:00
Yesterday I received a phone call regarding a user having problems with his mail. The user was able to send email but unable to receive it via MS Outlook Client. Usually, I encounter mail related problems due to recent password changes. However, that wasn?t the case this time because the user was able to connect to the POP server and subsequently send mail. Then I asked whether the ownership of the user's mailbox was set incorrectly or not. It was incorrect.Here is an example.# cd /var/mail# chown esoft:mail esoft# ls -l /var/mail/esoft-rw------- 1 esoft mail 110240 Jan 5 22:38 esoft
More About: Mail , User
User Unable to POP Incoming Mail via MS Outlook
2008-01-05 14:30:00
Yesterday I received a phone call regarding a user having problems with his mail. The user was able to send email but unable to receive it via MS Outlook Client. Usually, I encounter mail related problems due to recent password changes. However, that wasn?t the case this time because the user was able to connect to the POP server and subsequently send mail. Then I asked whether the ownership of the user's mailbox was set incorrectly or not. It was incorrect.Here is an example.# cd /var/mail# chown esoft:mail esoft# ls -l /var/mail/esoft-rw------- 1 esoft mail 110240 Jan 5 22:38 esoft
More About: Mail , User
FTP Using a Shell Script
2008-01-04 14:13:00
Manually transferring a file or files via FTP is a common and convenient method for moving data from one computer to another, especially if it?s a non-recurring event. But the reality is there are many times when an event is recurring and calls for immediate automation. This can be done by using a simple UNIX script file, which can then be executed via command line interface or added to the crontab. In the example below, I'm FTP?ing binary type files (pictures) from a local computer to a remote while logging the activity.Note: Some organizational policies may not allow login/password information in a script file.# vi myftp.sh#! /bin/shREMOTE='esoft'USER='anyuser'PASSWO RD='myftp125?FTPLOG=?/tmp/ftplog?date >> $FTPLOGftp -n $REMOTE _FTP>>$FTPLOGquote USER $USERquote PASS $PASSWORDbincd /myraid/dailyjpgsmput *.jpgquit_FTP:wq!Run via CLI# ./myftp.shAdd it to the crontab# crontab -e
More About: Script , Shell
MIT's OpenCourseWare Model is Proliferating Online
2007-12-30 13:36:00
The Massachusetts Institute of Technology OpenCourseWare effort has been offering free lecture notes, exams, and other resources from more than 1800 courses per its website. Some of their courses offer a substantial amount of video and audio content. I remember stumbling across this resource via my employer's intranet about a year ago. I thought it would not go very far because you couldn?t earn credit? Well, I was wrong. It?s catching fire and over 100 universities worldwide have setup similar models and some are top tier schools such as John Hopkins and Tufts. I was searching for a good UNIX course but I didn't find one yet. Surprisingly, it appears MIT?s Linear Algebra course is quite popular with the OpenCourseWare community.
More About: Model , Online
Shutdown a Sybase Adaptive and Backup Server
2007-12-28 16:08:00
Lately, I have seen a number of searches related to terminating an Sybase Adaptive server process. I wrote a post for starting a Sybase DBMS in July but not vice versa.Typically, the DBMS is started and terminated by using common startup and kill scripts. But SysAdmins can also gracefully shut down both the dataserver and backup servers via the command line. Here is a run.# isql ?Usa ?Ppassword1> shutdown SYB_BACKUP2> go1> shutdown2> goIf you can not shutdown the dataserver by the aforementioned methods, you might have to employ brute force: the kill -9 command. But note, this should only be performed in an emergency.# ps ?ef | grep backupserver# kill -9 PID# ps ?ef | grep dataserver# kill -9 PID
More About: Backup , Server , Shutdown
More articles from this author:
1, 2, 3, 4, 5, 6, 7
81398 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2009 - Supported by Web Catalog - SEO by FeWorks
eXTReMe Tracker