Search Results

Search: Posts Made By: pavanlimo
5,170
Posted By pavanlimo
Java hangs even though shell script’s execution is completed
I'm trying to execute a script from within my java code. The execution of the script is over(it's pid is no more), but java is stuck on waitFor() method of the shell script process!. And yes, I'm...
2,035
Posted By pavanlimo
Quirkasaurus, $data="123" I want this to be...
Quirkasaurus,
$data="123"
I want this to be concatenated with $input:
So the expected output would be:

"123abc".

This is happening as expected on BASH and also on KSH. CSH, like you said is...
2,035
Posted By pavanlimo
Variable value inconsistency on BASH and CSH
May God never give you the bane of working on Solaris.
Now, I am trying to run this simple shell script:

#!/bin/sh

input="a
b
c"
data="123"

while read...
11,110
Posted By pavanlimo
Convert date into epoch in Perl on Solaris
Solaris 10 doesn't seem to like me a lot. I am trying to run a simple script to accept date and return epoch of that date:

#!/usr/bin/perl -w
use strict;
use Time::ParseDate;

my($date1)="Mon...
10,276
Posted By pavanlimo
Thanks Jim, Tony for your super quick replies. ...
Thanks Jim, Tony for your super quick replies.

Jim, installing GNU utilities is not an option if this script is shipped to a customer. Since we can't expect the customer to install the utilities....
10,276
Posted By pavanlimo
date -d compatibility on Solaris
Hello there ppl,
I thought my question would qualify to be posted in this forum and in Solaris forum.

And I swear to God.. there is no discussion on this exact topic anywhere else on the web!
...
Forum: Solaris 04-02-2009
4,080
Posted By pavanlimo
date -d nightmare on Solaris
Hello there ppl,
I thought my question would qualify to be posted in this forum and in Shell scripting forum.

And I swear to God.. there is no discussion on this exact topic anywhere else on the...
11,804
Posted By pavanlimo
Its each line from a variable.. Looks like...
Its each line from a variable..
Looks like confused some!. :rolleyes:
104,717
Posted By pavanlimo
This thread saved my life :) You guys rock! ...
This thread saved my life :)

You guys rock!

--
Pavan.
11,804
Posted By pavanlimo
Sily me..
Sorry bout that one, I got the solution. Its quite simple actually.. so here we go..

smvar="Hello World1
Hello world 2
forgot there I guess"

echo "$smvar" | while read each
do
echo...
11,804
Posted By pavanlimo
Splitting a variable based on newline char
Heeloo all,

A weird problem perhaps. May god save others from this problem.
I want to print each line from a variable.. the example below should make it clear.

smvar="Hello World1
Hello world...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy