Thursday, December 27, 2007

Command Completion Character

(Snippet from Microsoft Site)

To Activate Automatic Completion Permanently loadTOCNode(3, 'summary');
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

1. Click Start, click Run, type regedit, and then click OK.
2. To enable automatic completion for the computer, locate and click the HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor key.
3. To enable automatic completion for the current user, locate and click the HKEY_CURRENT_USER\Software\Microsoft\Command Processor key.
4. For folder name completion, double-click the CompletionChar value. Type in hexadecimal the control character that you want to use. For example, if you want to use the TAB key as the control character, the control character is 0x9 (type 9 as the value; Windows converts it to hexadecimal). If you want to use the same control characters that you use for a single command session, type 0x4 for CTRL+D and 0x6 for CTRL+F. You can use the same control character for both folder and file name completion.
5. For file name completion, double-click the PathCompletionChar value. Type in hexadecimal the control character that you want to use.For example, if you want to use the TAB key as the control character, the control character is 0x9 (type 9 as the value; Windows converts it to hexadecimal). If you want to use the same control characters that you use for a single command session, type 0x4 for CTRL+D and 0x6 for CTRL+F. You can use the same control character for both folder and file name completion.
6. Quit Registry Editor.If you enable this feature for the computer, the feature is available to all users. However, you can deactivate the feature for any individual user, or you can use different control characters for that user than you applied to the computer. The user settings take precedence over the computer settings.

Thursday, December 20, 2007

Add tasks to the folder

1. Open CM Synergy command line section

2. If you have a list of CMSynergy task ids in a file D:\tasks.txt, run command



D:> for /f %a in (D:\tasks.txt) do @ccm folder -modify -at %a "-Folder ID-"

Library Path Variables

If some Unix application is crashing because it did not find some dependant library, you need to add the path of library file to standary library search path for Unix.

If /usr/foo/bar is the lcoation where you have the dependant library file available, then this is how you can add it to standard library for different OS's (assumming you are in bash shell):

Solaris & Linux:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/foo/bar

Aix:
export LIBPATH=$LIBPATH:/usr/foo/bar

HPUX:
export SHLIB_PATH=$SHLIB_PATH:/usr/foo/bar

Monday, December 3, 2007

Rsh configuration

Requirement : User abc should be able to do an rsh and execute command on remote linux machine foo.bar.com from myfoo.bar.com

Solution : (Ideally first 3 steps should be enough to setup rsh execution. Please continue with steps 4 onwards to dig more.)

1. Create .rhosts file in user home directory.
2. Add following entries in it
foo.bar.com abc
myfoo.bar.com abc
3. Edit /etc/hosts.equiv (create new if it does not exist already) file to add entries
foo.bar.com abc
myfoo.bar.com abc
4. Edit /etc/securetty to have following entries
rsh
rlogin
rexec
rsync
5. Make sure that disable=no is set for following scripts in /etc/xinetd.d
rlogin
rsh
rexec