Here is how you could run a grep command on a DataStage dataset.
First set the environment.
/apps/Ascential/DataStage/DSEngine> . dsenv
Then you will be good to go. Remember, Orchadmin works only from the bin folder.
/apps/Ascential/DataStage/PXEngine.700.1/bin> orchadmin dump DataSetWithPathName.ds | grep -i "Field Name"
Sunday, July 15, 2007
Shell scripting | Convert system date to Oracle Format.
Here is a small scriptling that basically can be used to get the system date and convert it into Oracle format. This script basically can compare the system date with the date got from Oracle and mail someone whether the comparison was a success or else.
#!/bin/bash
a=`sqlplus -s / b=`date +"%m-%h-%Y"|tr [a-z] [A-Z]` # Obtaining the system date and converting it to Oracle format
if [ "$a" = "$b" ]; # Comparing if the dates are same. This was just the logic I had required in my script. Could be different for you.
then flag=0;
else flag=1;
fi;
if [ "$flag" = 0 ];
then echo "Dates are same. Body of the mail"|mail -s "Subject of the mail" yourname@yoursite.com;
else
echo "Dates are different, Body of the mail"|mail -s "Subject of the mail" yourname@yoursite.com;
fi;
##################END######################
test.sql can be obtained as following. Remember, test.sql could have been made inline with the redirection operator "<<".
SET echo off;
SET pagesize 0;
SET heading off;
select MY_DATE
from MY_TABLE;
#!/bin/bash
a=`sqlplus -s /
if [ "$a" = "$b" ]; # Comparing if the dates are same. This was just the logic I had required in my script. Could be different for you.
then flag=0;
else flag=1;
fi;
if [ "$flag" = 0 ];
then echo "Dates are same. Body of the mail"|mail -s "Subject of the mail" yourname@yoursite.com;
else
echo "Dates are different, Body of the mail"|mail -s "Subject of the mail" yourname@yoursite.com;
fi;
##################END######################
test.sql can be obtained as following. Remember, test.sql could have been made inline with the redirection operator "<<".
SET echo off;
SET pagesize 0;
SET heading off;
select MY_DATE
from MY_TABLE;
Thursday, July 05, 2007
FF is back.
He Guys,
Firefox 3 Alpha 4 is around the corner scheduled to be released this month end. To get further info on this you could refer the link http://blog.wired.com/monkeybites/2007/04/first_look_fire.html. Seems like they have done some fine tuning for better speeds, though most of the changes are behind scenes and may not be very evident to a normal user.
Firefox 3 Alpha 4 is around the corner scheduled to be released this month end. To get further info on this you could refer the link http://blog.wired.com/monkeybites/2007/04/first_look_fire.html. Seems like they have done some fine tuning for better speeds, though most of the changes are behind scenes and may not be very evident to a normal user.
Powered by ScribeFire.
Saturday, June 30, 2007
iPod
Finally I managed to buy an iPod. As soon as I got this months salary I bought an iPod, a 2GB iPod Nano, neat stuff. I don't know I seem to have a thing for gadgets and softwares. So here I go rollicking with my iPoddy...
Internet
I finally got rid of my Hathway connection and got hold of Dataone. In chennai Hathway service was ridiculously bad. Usually the connection downtime is more than the uptime.Even though it worked slightly cheaper as the initial investment is comparatively
less, the speed was not up to mark nor were their service. To get the dataone connection I had to pay initially 2k (1k - phone, 1k - modem) and a monthly rental of 500 bucks. I think it is worth it as the connection is over a telephone line it usually never goes down. Moreover in papers they promise a speed of 256kbps-2Mbps. I ran a speed test and found it to be 1Mbps which is pretty neat.
less, the speed was not up to mark nor were their service. To get the dataone connection I had to pay initially 2k (1k - phone, 1k - modem) and a monthly rental of 500 bucks. I think it is worth it as the connection is over a telephone line it usually never goes down. Moreover in papers they promise a speed of 256kbps-2Mbps. I ran a speed test and found it to be 1Mbps which is pretty neat.
Friday, June 22, 2007
Cool Vid!
Hey Guys,
Check this video out, its kinda a groovy and catchy tone.
The lady who sings it is not bad either. She could definitely give Shakira a run for her money.
Apparently, she is a Pakistani singer name Annie.
Check this video out, its kinda a groovy and catchy tone.
The lady who sings it is not bad either. She could definitely give Shakira a run for her money.
Apparently, she is a Pakistani singer name Annie.
Friday, June 15, 2007
Ubuntu 7.04 Beta
I came to know that Ubuntu had released a new verion 7.04 alias Fiesty fawn. I went to their website and ordered for the CD online. I got it in a matter of two weeks. As my lappy is AMD 64 bit, I had ordered for a 64 bit version. I am yet to try it. I shall update my blog once I install it. I am also planning to install Beryl along. This version is said to be the most user friendly of all versions until now.
Ubuntu 7.04
Ubuntu 7.04
POC-At The World's End
"Pirates of the Carribean - At the world's end" will definitely be one of my all time favourites. The movie is quite long, spans to approximately 3 hours. But it is an absolute treat for three hours.
What surprised me is that the keira knightley seems to be having the majority of the screen time. Part two of the movie ended with Jack being sent to David Jone's locker. This movie unfolds as he is back and as the others go in search of him. The graphics are simply amazing. Towards the end of the movie there is a fight between the black pearl and David Jone's ship around the brim of a whirl pool, simply awesome!! All in all I would say, A real treat and worth of money.
Hey watchout, as there is a bonus scene after the credits, I missed it . Damn!
For now take a look at the trailer of the movie.
What surprised me is that the keira knightley seems to be having the majority of the screen time. Part two of the movie ended with Jack being sent to David Jone's locker. This movie unfolds as he is back and as the others go in search of him. The graphics are simply amazing. Towards the end of the movie there is a fight between the black pearl and David Jone's ship around the brim of a whirl pool, simply awesome!! All in all I would say, A real treat and worth of money.
Hey watchout, as there is a bonus scene after the credits, I missed it . Damn!
For now take a look at the trailer of the movie.
Sivaji!!
Sivaji is a revolution out in Chennai. Infact it is huge all over south India and the U.S. Tickets had been sold out a week back itself in the U.S. The movie comes with a thumping punchline said by Rajni "Pera kettale... chumma athiruthillai?" , which translates to, doesn't listening to my name itself freak you out. More than 1 lakh people had watched the movie in Tamilnadu itself on the first day of its release. Rajni used to be a bus conductor in Bangalore long before he was a superstar. I wonder what made him into a religion among the Tamil community.
I am just waiting for the day to grab a ticket and watch the movie myself. For now you can have a sneak peek at the trailer.
I am just waiting for the day to grab a ticket and watch the movie myself. For now you can have a sneak peek at the trailer.
Monday, May 07, 2007
Shell jokes
Here are some jokes Linux has under the hood.
% "How would you rate Reagan's incompetence?
Unmatched ".
% [Where is Jimmy Hoffa?
Missing ].
% ^How did the sex change^ operation go?
Modifier failed.
% If I had a ( for every $ Congress spent, what would I have?
Too many ('s.
% make love
Make: Don't know how to make love. Stop.
% sleep with me
bad character
% got a light?
No match.
% man: why did you get a divorce?
man:: Too many arguments.
% ^What is saccharine?
Bad substitute.
% %blow
%blow: No such job.
% \(-
(-: Command not found.
% sh
$ PATH=pretending! /usr/ucb/which sense
no sense in pretending!
$ drink < bottle; opener
bottle: cannot open
opener: not found
$ mkdir matter; cat > matter
matter: cannot create
(First add an /etc/hosts alias of 'elvis')
$ ping elvis
elvis is alive.
Powered by ScribeFire.
Sunday, May 06, 2007
Cool command
The other day while was working in office in UNIX, also feeling quite bored. A funny command struck my mind. I just tried and it works. The command is "ls -flirt". UNIX is cool, you can literally flirt with it. -)
Powered by ScribeFire.
Thursday, May 03, 2007
Weird dream!
The other night when I was asleep, obvious!
I imagined myself on a plane, flying abroad to the U.S. Well the strange thing I saw was a goddamn huge sea serpent trying to grab the plane which I was flying on. Well, this thing was huge. Our pilot with a lot of stunts was trying to get out of reach from the serpent(The funny thing is yet to come). I get an idea all of a sudden. I took my digi-cam from my bag and shot a 20 sec video of the sea serpent trying to get hold of the plane. None else got this idea.
Eventually I reach my bro's house in U.S. safe and sound.
First thing I did after getting home was to sign up with Google add sense and have it on my website as well as my blog. As I had the only visual proof of the serpent I uploaded the video on my web site as well as my blog, which has Google add sense all over it now. Then, smartly, I mailed the link to cnn and bbc. I also dugg the link and also posted in technorati. The next week checked my bank account online and found it had freak'n 5 lkhs...... I was enjoying staring at my bank account on the screen when my damn alarm rung, it was time for my morning shift!!!
I imagined myself on a plane, flying abroad to the U.S. Well the strange thing I saw was a goddamn huge sea serpent trying to grab the plane which I was flying on. Well, this thing was huge. Our pilot with a lot of stunts was trying to get out of reach from the serpent(The funny thing is yet to come). I get an idea all of a sudden. I took my digi-cam from my bag and shot a 20 sec video of the sea serpent trying to get hold of the plane. None else got this idea.
Eventually I reach my bro's house in U.S. safe and sound.
First thing I did after getting home was to sign up with Google add sense and have it on my website as well as my blog. As I had the only visual proof of the serpent I uploaded the video on my web site as well as my blog, which has Google add sense all over it now. Then, smartly, I mailed the link to cnn and bbc. I also dugg the link and also posted in technorati. The next week checked my bank account online and found it had freak'n 5 lkhs...... I was enjoying staring at my bank account on the screen when my damn alarm rung, it was time for my morning shift!!!
Monday, April 30, 2007
Cool Link
Check this link out guys. You can chose any color and it dynamically runs a search behind the screens on flickr and obtains snaps with similar color, neat stuff!!
http://color.slightlyblue.com/
http://color.slightlyblue.com/
Powered by ScribeFire.
Sunday, April 22, 2007
Microstrategy
I finally managed to get a couple of certifications. Microstrategy project designer(MPD) and Microstrategy report developer(MRD). It was quite easy though. But the better part was the tutor who took the training. She is polish but settled in US. Damn she is nothing less than a model. Surprisingly, excellent knowledge in the data warehousing domain. Quite a few people flunked in the certification exam. The course cost was a whopping $1300. If I flunked, my project lead would have nuked me. Fortunately I made it:-).
Powered by ScribeFire.
Sunday, April 15, 2007
Song I listen to off late...
There is this English number from Justin Timberlake, What goes around comes around. I kinda love this song, its got a sense of warning all over the lyrics and the music. I think it's quite groovy. Reminds me of Apocalypse.
May be you should listen to it some time...
May be you should listen to it some time...
Vista vs. Beryl
My friend introduced me to Beryl the other day. I still did not try it out as I just thought, how cool could it be... Well, guess I was wrong. Check out this youtube video.
Vista vs. Beryl
Vista vs. Beryl
Saturday, March 31, 2007
Back to DRUPAL!
Yeah! Yeah! I know! I kinda gave it up. IT has been a long time since I have been trying to squeeze in some time to update my website. But, I am damn too busy for anything. Moreover, 250 MB of webspace left unused is bad, bad for the cyber world. I went through the drupal forum once more and was really impressed. Drupal has come a long way .
The other day I was browsing the official target forum, I kinda found the layout similar to that of Drupal. Later on, while I was registering I figured out that indeed it was Drupal!
The other day I was browsing the official target forum, I kinda found the layout similar to that of Drupal. Later on, while I was registering I figured out that indeed it was Drupal!
Tuesday, March 20, 2007
Cracking Vista!
As long as Microsoft lives with monopoly, Its got the whole world against them. In fact the method by which Vista was cracked sounds real funny. Vista has been designed
in such a way that It shrinks to a blank version once the trial is
over. Basically once the trial period ends all themes are disabled, most of
the apps are also disabled.iexplore will connect only to Microsoft
website only. Basically you won't be left with any choice than to buy the
licence or kiss goodbye to all that precious data you have in there.
Seems like M$ have tried the same stunt with XP as well, but failed as there were a lot of problems faced by genuine users.
The hacker's world definitely
didn't stay quiet. They came up with a smart ass work around. The crack
basically edits the BIOS time settings. What do you have? A vista with
an infinite trial period. Lovely! Well! While in Vista your clock will
always display the correct time, not sure how they achieved this
though. Any ways, Who cares! It works!
in such a way that It shrinks to a blank version once the trial is
over. Basically once the trial period ends all themes are disabled, most of
the apps are also disabled.iexplore will connect only to Microsoft
website only. Basically you won't be left with any choice than to buy the
licence or kiss goodbye to all that precious data you have in there.
Seems like M$ have tried the same stunt with XP as well, but failed as there were a lot of problems faced by genuine users.
The hacker's world definitely
didn't stay quiet. They came up with a smart ass work around. The crack
basically edits the BIOS time settings. What do you have? A vista with
an infinite trial period. Lovely! Well! While in Vista your clock will
always display the correct time, not sure how they achieved this
though. Any ways, Who cares! It works!
Experience with Vista!
I was on Vista for a few days, but as expected, gave it up. It seemed
too bulky to me. The looks are awesome, it also had a media center
incorporated. The one I had Installed in mylappy was the Vista Ultimate version. Trust me, It took 11GB flat! I thought for my 60GB HD it was not worth it. Moreover the number of background processes were just too many, My lappy was red hot always. Finally I settled with a bare Win XP and Ubuntu on my lappy. Much! Much! Better!
too bulky to me. The looks are awesome, it also had a media center
incorporated. The one I had Installed in mylappy was the Vista Ultimate version. Trust me, It took 11GB flat! I thought for my 60GB HD it was not worth it. Moreover the number of background processes were just too many, My lappy was red hot always. Finally I settled with a bare Win XP and Ubuntu on my lappy. Much! Much! Better!
Ubuntu on Acer 5000 lappy
I have tried desperately trying to load Ubuntu on my lappy since a long time but always futile. I went through tons of forums, lot of users usually having the ATI
graphics card face this issue. Basically the installation starts, the
status messages start dropping, suddenly whoosh, the screen goes blank
forever. Initially I too believed the problem was with the ATI card, in fact ATI
has even accepted this issue officially and have created a work around
for the same. As a final try, before installation I hit the F1 help
button, there was a choice to disable the frame buffer, not sure what
it does though, continued the installation and then bingo! It
succeeded. Its simply lovely to have Ubuntu Breezy Badger back.
Hail Linux!
graphics card face this issue. Basically the installation starts, the
status messages start dropping, suddenly whoosh, the screen goes blank
forever. Initially I too believed the problem was with the ATI card, in fact ATI
has even accepted this issue officially and have created a work around
for the same. As a final try, before installation I hit the F1 help
button, there was a choice to disable the frame buffer, not sure what
it does though, continued the installation and then bingo! It
succeeded. Its simply lovely to have Ubuntu Breezy Badger back.
Hail Linux!
Subscribe to:
Posts (Atom)