Posts

Enable PHP mail() function under Ubuntu

If PHP mail() function doesn't works on your development desktop and your Apache error log shows something like " sh: /usr/sbin/sendmail: not found " - then you obviously need to install "sendmail" in order to fix that :) Just run the following command in Ubuntu: #  apt-get install sendmail To configure Sendmail for your needs use (see appropriate configuration scripts in output): # sendmailconfig  

Unable to issue bin/uv command without parameters to start UV shell

In DataStage, the command: bin/uvsh is normally used to start the command shell, while bin/uv command is normally called with additional parameters (i.e. bin/uv -admin -start). If bin/uv is called with no parameters, it will attempt to launch the UV shell, but that request will usually fail with errors reporting libraries not found. For example on AIX user may see: exec(): 0509-036 Cannot load program bin/uv because of the following errors: 0509-150 Dependent module libicwrapper.so could not be loaded. 0509-022 Cannot load module libicwrapper.so. 0509-026 System error: A file or directory in the path name does not exist While on Linux the error may be: bin/uv: error while loading shared libraries: libdsplugin.so: cannot open shared object file: No such file or directory Depending on release and platform, the failing library name could also be libodbc.so, libodbcinst.so, or additional libraries.

Unlocking XMETA locks from jobs

How can I unlock an XMETA locked job? The job cannot be exported and when attempting to open the job, the following error appears: Unable to open the Job The Job 'TestJob' is locked by user 'dsadm' (SessionID '8F1B0326-4F7E-45A8-B8EC-EAA8C4780528') Do you want to continue and open a read-only view of the Job? Cause This issue arises when a lock still remains in XMETA for the corresponding job. Information Server will lock the job to ensure that there is no indeterminancy regarding the editing and saving of a job. The most common causes of this is when a user has closed a client window unexpectedly (e.g. Force Terminate).

istool syntax

First - here's some of the "help" options to show that there is help for each of the main istool operations (again - just showing export).  Code: $ pwd  /opt/IBM/InformationServer/Clients/istools/cli  $ ./istool -h  istool Command [ Command_Options ] [ Options ]  Possible values for: Command      -                    : Provide usage information.      help                 : Provide command-line help information.                           : Istool Console.      export               : Export to a file.      import               : Import from a file.      build package        : Build a Deployment Package.      deploy package       : Deploy a Deployment Package.  To list Command_Options, enter:  istool Command -help  Possible values for: Options      Long Name:         Short Name:     Description:      -help            , -h              : print command usage      -verbose         , -v              : display progress      -silent          , -s              : silence command out...

How to Manually Stop/Start IBM InfoSphere Information Server services on Unix/Linux

The order in which to stop all services is: Stop DataStage Engine Stop the ASB Agent Stop the WebSphere Application Server (WAS) Here are the step-by-step instructions for each of the above.  Stop DataStage Engine Log into your UNIX machine as root Make sure that no one is using DataStage. Check if there are any processes left ps -ef | grep -i phantom ps -ef | grep dsapi ps -ef | grep dscs These commands should not return any results. If they return results, it means that there are still some processes running. You can wait for the users to stop their processes or kill the processes (using kill -9 PID). Check if dsrpc is running netstat -a | grep dsrpc If dsrpc is running, then you should get a line with the status LISTEN. If you get more lines it means that there are still some connections and you need to wait. If you see that dsrpc or other connections are in status WAIT then you also need to wait until this it disappears (you can also reboot the machi...

Ubuntu Apache2 : Change default DocumentRoot /var/www

By default the document root folder for  apache2  in Ubuntu is /var/www. This is where you can store your site documents. In order to change the default site location to a different one,  /opt/mysite  use the following method. A detailed steps to install LAMP on ubuntu is given  here. To do this, we must create a new site and then enable it in Apache2. To create a new site: Copy the default website as a starting point. sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite Edit the new configuration file in a text editor "sudo nano" on the command line or "gksudo gedit", for example: gksudo gedit /etc/apache2/sites-available/mysite Change the  DocumentRoot  to point to the new location. For example, /opt/mysite  (make sure there is no space in your new folder name; /opt/my\ site/ will not work) Change  DocumentRoot /var/www  to   DocumentRoot /opt/mysite Change th...

Start Your MySQL Server Automatically After a System Restart

Log into your mysql server If you are familiar with the text editor "vim" or "vi," go ahead to the next step. If not, type the following command. export EDITOR=/usr/local/bin/pico To add a cron job, type the following command: crontab -e Insert this line of text: @reboot /ux01/tools/mysql.starter Save and close the file using Pico.  (Click for instructions on how to use pico) . You can check the contents of your crontab by typing the following command: crontab -l If you ever want to delete all of your cron jobs, type the following command crontab -r