Search Results

Search: Posts Made By: ashish_uiit
3,949
Posted By ashish_uiit
Finding service status on windows from Linux
Hi all,

Please advise how do i find services status running on windows machines

from Linux.
=-=====================
Some one developed a script use rsh command to find the status but it...
12,919
Posted By ashish_uiit
Hi thanks for reply .. if i use sleep with goto...
Hi thanks for reply ..
if i use sleep with goto ..will that be moe effiecient as comapred to while 1?

Also what are drawbacks of sleep and while 1.
12,919
Posted By ashish_uiit
Which is more efficient - sleep or infinite while?
Hi
i need to make a script to check disk space every hour.

****Note that cron is not allowed.

So i need to use either sleep or while 1 ...pls suggest which is more efficient in this scenario?...
3,396
Posted By ashish_uiit
Thanks for help. but it will set line...
Thanks for help.

but it will set line numbers everytime i use vi to open file. I just want to set line numbers when vi is run from my script.

Is there any way that i can specify which...
3,396
Posted By ashish_uiit
Setting properties for vi during run time.
hi
I want to view the line numbers in /bin/rvi when i open a file to edit in a script.
The default properites of vi editor are not set to view line numbers and not allowed to change them.
So...
1,817
Posted By ashish_uiit
Hi I got solution from ITtoolbox.com. It...
Hi

I got solution from ITtoolbox.com. It can be done as

{
printf "%s \n" "INPUT 1"
printf "%s \n" "INPUT 2"
cat
} | newscript

regards,
Ashish
1,817
Posted By ashish_uiit
invloking another script accepting input
hi
I am trying to invoke another application script from my script like
---------------------------
main
.
.
./new appl <<EOF
Input 1
Input 2

EOF
.
.
exit
------------------------...
4,950
Posted By ashish_uiit
I tried but its not working ..
I tried but its not working ..
4,950
Posted By ashish_uiit
Enter Crtl+U character in shell script
hi
I have some program which accepts "Crtl+U" input, Now i want to run it thorugh my written script ...all other inputs are accepted but how to supply this input.
I am supplying input parameters...
1,816
Posted By ashish_uiit
validating the userid and passwd
Hi

i need to write a script which perform some action only when an existing and privliged user is running it. It will call another script where user ID and password are required.

So in main...
7,912
Posted By ashish_uiit
thanks a lot.
thanks a lot.
Forum: Solaris 05-20-2008
18,915
Posted By ashish_uiit
deploying .ear file Websphere
hi
This may not be right question to ask on this forum, but I think people here can answer the question.

Please give me details of steps/commands used in UNIX ( only command mode) for deploying...
7,912
Posted By ashish_uiit
handling Infinite fork
how Unix handles as process which forks infinitely.
like .......

while(1)
fork();

........
What happens when it is executed and how to avoid it.

Thanks,
Ashish
2,372
Posted By ashish_uiit
You can use awk to find the pattern count...
You can use awk to find the pattern count provided words are separated by space or tabs.

like
awk ' BEGIN{ count=0 }{
for (i=1; i<=NF ;i++){
...
2,372
Posted By ashish_uiit
grep -c will give count of lines containing the...
grep -c will give count of lines containing the pattern not the pattern count.
3,551
Posted By ashish_uiit
For string comparisons always put variables and...
For string comparisons always put variables and strings in double qoutes.

like

until (test "$pst" = "dmp" )
8,038
Posted By ashish_uiit
This first line is there in file. I am asking for...
This first line is there in file. I am asking for difference of executing first way and second way
8,038
Posted By ashish_uiit
Executing file without excute permission.
Hi,

I have a file which don't have execute permission, but still it can be executed by "sh" like as below.
------------------------------------------------------------------
-rw-r----- 1 root...
4,614
Posted By ashish_uiit
It works ... But I have like this k=$a$b ...
It works ...
But I have like this
k=$a$b

Now I want to manipulate this.

If you tell me how to convert it into '$a$b' ... then I will be greatful.
4,614
Posted By ashish_uiit
yes i see ...expanded variables when i do "echo...
yes i see ...expanded variables when i do "echo $k".
To escape $ first i need to replace "$" with "\$".. thats the problem I am facing.
4,614
Posted By ashish_uiit
I am using while loop like while read k ...
I am using while loop like

while read k

.....// if $DESTDIR is present in k then go to next line in file
because DESTDIR is not defined .
else
use value of k as it is it...
4,614
Posted By ashish_uiit
$DESTDIR/$PKG/$VERSION is coming from a read only...
$DESTDIR/$PKG/$VERSION is coming from a read only file to k while reading.
4,614
Posted By ashish_uiit
Replacing "$" in variable
hi
I have a variable like

k=$DESTDIR/$PKG/$VERSION

I want to replace each $ in string k with say "XXX".
so that k becomes like this "XXXDESTDIR/XXXPKG/XXXVERSION"

when I use echo $k | sed...
4,614
Posted By ashish_uiit
Replacing $ in variable
hi
I have a variable like

k=$DESTDIR/$PKG/$VERSION

I want to replace each $ in string k with say "XXX".
so that k becomes like this "XXXDESTDIR/XXXPKG/XXXVERSION"

when I use echo $k | sed...
Forum: Solaris 02-27-2008
20,602
Posted By ashish_uiit
Thanks...........
Thanks...........
Showing results 1 to 25 of 26

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