Tuesday, September 18, 2012

Remotely connecting to a unix machine in graphical mode


ssh user@host lets you to access a unix machine in command line mode.

But if you need to access its UI, you need to access the graphical mode. This can be achieved by using ssh with X forwarding. This is the command for that.

ssh -X user@host

This will set the DISPLAY variable automatically. The X programs you run will be automatically tunneled back through the ssh connection.

Thursday, March 29, 2012

command-line looping to stress jaggery run-tim

Got to know this is how command line looping is used:
while [ 1 ]
   do
      ls -al  ; sleep 60
   done
Applying this to stress command-line jaggery
while [ 1 ]
     do sh jaggery.sh /home/yumani/Documents/projects/jaggery/mine/array/array.jss; sleep 10;
done

Tuesday, January 3, 2012

Backup & restore DB2 database

Following will be helpful when you need to backup and restore a db2 database;  

To back-up;
Type following command in command editor.
backup db to <db_name> to <location>
i.e. backup db YUM to c:\db_dump 

When this command is successfully executed the following will appear in the response window; "Backup successful. The timestamp for this backup imageloca is: xxxxxxxxxxx" 


The dump will be available in the location you specified with the timestamp (stated above) being part of its name.
i.e. YUM.0.DB2.NODE0000.20120103141256.001  

To restore;
Type following command in command editor.
restore db taken at <time-stamp>
i.e. restore db YUM taken at 20120103141256



Day 03 Gala Dinner Highlight Video