Search Results

Search: Posts Made By: haroon_a
Forum: AIX 01-27-2010
1,843
Posted By haroon_a
Thanks for prompt reply. Appreciate it. :-)
Thanks for prompt reply. Appreciate it. :-)
Forum: AIX 01-27-2010
1,843
Posted By haroon_a
Franklin, Thanks alot mate. It just did the...
Franklin,

Thanks alot mate. It just did the trick.

So, how it worked is the awk searched for the string "---" and printed the line after it?
Forum: AIX 01-27-2010
1,843
Posted By haroon_a
question about sed
Hi all,

I have a text file of the following format, i.e.



EMC Documentum idql - Interactive document query interface
(c) Copyright EMC Corp., 1992 - 2008
All...
Forum: AIX 01-27-2010
3,174
Posted By haroon_a
Thanks Radoulov, It works. :-)
Thanks Radoulov, It works. :-)
Forum: AIX 01-22-2010
3,174
Posted By haroon_a
reading files from a directory.
Hi all,

I have a shell script where it processes a set of files from a particular directory (shared location among 4 servers). i.e. under this directory /shared/work/ I have a set of files that...
Forum: AIX 01-20-2010
9,050
Posted By haroon_a
can you provide your scheduled mailx? how are...
can you provide your scheduled mailx? how are have you scheduled? is it a cronjob?
Forum: AIX 11-20-2009
2,353
Posted By haroon_a
Thanks Scott, it worked. You are always...
Thanks Scott, it worked.

You are always such a great help...Thanks buddy, again. :)
Forum: AIX 11-20-2009
2,353
Posted By haroon_a
How to read the latest file name in adirectory.
Hello all,

In a shell script, I need to get the name of the latest file which was created in a directory. i.e. I have the following directory.

/tmp/public/logs/


In this directory, I want...
Forum: AIX 11-20-2009
30,485
Posted By haroon_a
Thanks for prompt reply. I was kind of under that...
Thanks for prompt reply. I was kind of under that impression too, but wasn't sure. So, can you tell me where in JBoss, I can set this up so the created dump file goes to the desired location and not...
Forum: AIX 11-20-2009
30,485
Posted By haroon_a
kill -3 <PID> ... where the output file goes?
Hi all,

I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/.
...
Forum: AIX 11-05-2009
48,459
Posted By haroon_a
Thanks Scott, once again...let me try that.
Thanks Scott, once again...let me try that.
Forum: AIX 11-05-2009
5,754
Posted By haroon_a
matching pattern in 'ps' command
Hi all,

I have two instance of jboss (jboss and jboss2). In a shell script that I am writing, I need to grep for each instance of jboss.

If i use ps -ef|grep 'jboss', it will also return the...
Forum: AIX 11-05-2009
48,459
Posted By haroon_a
Scott, That worked! Thanks alot and real...
Scott,

That worked! Thanks alot and real appreciate it.

---------- Post updated at 03:32 PM ---------- Previous update was at 03:11 PM ----------

On a seperate note:

Now I know how to...
Forum: AIX 11-05-2009
48,459
Posted By haroon_a
still the same thing, Scott. Can you tell me...
still the same thing, Scott.

Can you tell me which values does the following compare?

if [ -z "$PID" ]; then
Forum: AIX 11-05-2009
48,459
Posted By haroon_a
Thanks Scott, for quick reply, Here's what I...
Thanks Scott, for quick reply,

Here's what I have in my script:

#!/bin/sh
. ~/.profile



PID=$(ps -eo pid,comm | awk '$2 == "jboss" {print $1}')

echo $PID

if [ -z "$PID" ]; then
...
Forum: AIX 11-05-2009
48,459
Posted By haroon_a
Getting process ID in a shell script.
Hi all,

In my script i need to store the process ID of my app server in a variable. I know how to verify whether a process is running, by following:



ps -ef|grep 'jboss'
status=$?

if...
Forum: AIX 11-03-2009
5,649
Posted By haroon_a
I've tried the solution, which i was explainin in...
I've tried the solution, which i was explainin in my last post. When I tried to launch the script from windows, it launch the script alright; however, since the script is interactive (asks user for...
Forum: AIX 11-03-2009
5,649
Posted By haroon_a
Thanks for suggestion. Can you tell me if the...
Thanks for suggestion. Can you tell me if the following will be ab option:

- using putty's plink.exe, i can generate a key pair for one aix server, and provide the public key in my windows PC....
Forum: AIX 11-03-2009
5,649
Posted By haroon_a
Running unix command from windows? How?
Hello Folks,

I have a need to execute certain scripts on a regular basis on a number of (AIX) servers. What I had in mind, is to accomplish this using ssh/rsh, auto login. Initially I developped...
Forum: AIX 10-30-2009
3,629
Posted By haroon_a
Absolutly correct, bak! That simple, yet...
Absolutly correct, bak! That simple, yet important--at least in my case--trick, did the job. Thanks alot.
Forum: AIX 10-29-2009
3,629
Posted By haroon_a
Thanks you. It worked, when I moved the function...
Thanks you. It worked, when I moved the function before its call.

I have another question:

I want to cancatenate value of some variables, and pass it to another functin. i.e.

aFunction() {...
Forum: AIX 10-28-2009
3,629
Posted By haroon_a
Thanks for the hints and advise. I'll look into...
Thanks for the hints and advise. I'll look into rsh.

In the meantime, I am working on my script, and want to re-use portions of my code (BTW, I'm not an expert in shell scripting), so I decided...
Forum: AIX 10-28-2009
3,629
Posted By haroon_a
ssh public key setup questions.
Hi all,

I have N number of AIX hosts, where I need to login frequently and do some routine tasks (run some scripts). I need to setup ssh public/private key, so I can auto-login via a master...
Showing results 1 to 23 of 23

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