Wednesday, August 26, 2009

nohup, but not nohup.out -- how to?

Command to redirect nohup output to a different file other than default nohup.out

# nohup somecommand > somefile 2>&1

Tuesday, January 6, 2009

Install multiple versions of FireFox and Run them simultaneously

Install Multiple versions of firefox in XP

  http://www.speedbreeze.com/2008/01/01/install-multiple-versions-of-firefox-on-windows-xp/

Run them at the same time using Windows Shell Scripts.
   http://dojotoolkit.org/node/209

 Examples of Windows Shell Scripts:

Firefox2_0_0_2.wsf:
----------------------------

     <?xml version="1.0"?>
<package>
   <job id="Firefox:2.0.0.2:Loader">
   <?job debug="true"?>
      <script language="javascript">
              var shell = WScript.CreateObject("WScript.Shell");
              var env = shell.Environment("User");
              env("MOZ_NO_REMOTE") = 1;
              shell.Exec('C:\\Program Files\\Mozilla Firefox\\firefox.exe -P "FF_2_0_0_2"');
              env("MOZ_NO_REMOTE") = 0;
      </script>
   </job>
</package>

FireFox3_0-5.wsf:
------------------------
<?xml version="1.0"?>
<package>
   <job id="Firefox:3.0.5:Loader">
   <?job debug="true"?>
      <script language="javascript">
              var shell = WScript.CreateObject("WScript.Shell");
              var env = shell.Environment("User");
              env("MOZ_NO_REMOTE") = 1;
              shell.Exec('C:\\Program Files\\Mozilla Firefox 3.0.5\\firefox.exe -P "FF_3_0_5"');
              env("MOZ_NO_REMOTE") = 0;
      </script>
   </job>
</package>