doyoudb2

DB2 UDB for LUW (Linux, Unix and Windows)

 
  • Increase font size
  • Default font size
  • Decrease font size
UNIX Related - Tips & Tricks

Pushing nohup in background

E-mail Print PDF
User Rating: / 1
PoorBest 

I just submitted an important db2 command via nohup, but  forgot to put the & at the end of the line. The job instead of getting submitted in to background is running in my session. I don’t want to terminate the command and resubmit nor I want it to get cancelled due to a session disconnect. What to do?

Read more...
 

ssh....how to login without password

E-mail Print PDF

With rsh and rlogin being phased out nearly everywhere and being replaced by ssh/secure login, lets see how to setup SSH public-key authentication to enable password-less secure login from one server to another. In simpler words how to login using ssh and without providing a password.

Let’s assume you have to setup automatic (password-less) ssh login from a server UX1 to another server UX2. The user on UX1 is USR1 and that on UX2 is USR2. Here is what you have to do:

Read more...
 

ftp in the background

E-mail Print PDF
User Rating: / 2
PoorBest 

Downloading that new db2 fixpak using ftp? The ftp runs for a couple of hours and then just when its about to finish your session terminates with a weird windows error.

Here is a solution to avoid such mishaps - run the ftp in background with nohup. This allows you to download large files without having to leave your telnet session open.

Read more...
 

Do you kill without mercy?

E-mail Print PDF

It is a common practice to use the 'kill -9' command to terminate a process. 'kill -9' or 'kill without mercy' as some like to call it, sends a SIGKILL signal to the process and simply yanks it out of the process table without permitting any cleanup activities. This should only be done only as a last resort after trying 'hangup' (kill -1 PID) then 'Abort' (kill -6 PID).  These two allow the process to terminate gracefully. In the case of the Abort, a core file is produced.

Read more...
 


Search Site

Subscribe

Enter your email address to receive new posts directly in your Inbox:

Relax! We hate SPAM as much as you do.

Sign In/Register

Syndicate Feeds - Subscribe