Search Results

Search: Posts Made By: jhansrod
Forum: AIX 12-14-2005
8,522
Posted By jhansrod
rsh and user environment
Hi all

I am trying to run a program from hostA to hostB using rsh, however when I execute
rsh hostB -l myuser mycommand

mycommand fails because the environment is not correct. I have checked...
Forum: AIX 11-24-2005
6,204
Posted By jhansrod
I think the problem is due to the cariable...
I think the problem is due to the cariable $JHOPSROOT. Does anyone know how I can use a variable in cron ?
Forum: AIX 11-24-2005
6,204
Posted By jhansrod
Problem with cron
Hi all

I am trying to run a job via cron, however it does not execute. The cron log file has the following lines in it. When I run the command at CL, it works.

root : CMD ( su - JHOps -c...
5,386
Posted By jhansrod
Dear Unix Daemon Thanks for the response,...
Dear Unix Daemon

Thanks for the response, however I want to use a variable instead of everytime having to use the date command.

Thanks
5,386
Posted By jhansrod
Substituting variable with current time
Hi all

I have a script as follows :-
#!/usr/bin/ksh
IDT=`date +"%OH%M%S"`
while true
do
echo ${IDT}
sleep 1
done

I need the time to show me the current runtime value for the time,...
13,328
Posted By jhansrod
Thank you Based on the input of the this,...
Thank you

Based on the input of the this, how can I break out of the loop ?
13,328
Posted By jhansrod
input inside while read loop
Hi all

Does anyone have a script that will allow me to stop inside a while read loop.
I want to pause the loop until a enter is pressed.

e.g.

While read line
do
echo something
...
2,684
Posted By jhansrod
Creating a tabulated file from content of 2 or more files
Hi all

I need specific fields from a file to be tabulated into a single file.
I have a file with the following :-

FIELD1 InfoA FIELD2 InfoB
FILED3 ...
3,563
Posted By jhansrod
Loop in remote shell command
Hi All

Does anyone have any idea on how I can create a loop when running a remote shell. e.g.
If I want to execute the following command remotely and log the output locally
for x in `lsvg`
do...
1,828
Posted By jhansrod
Puuurfect !!!!!!!!! Thank you One last...
Puuurfect !!!!!!!!!
Thank you
One last question on this. How do I capture the rest of the line from the position where field 1 ends.
e.g.

Field1=`echo '/a/b/c/d' | sed 's#.*/\(.*\)#\1#'`
...
1,828
Posted By jhansrod
Field identification starting from the right
Hi all

If I have lines in a file as follows :-
/ora04/oradata/data1/data1.dbf
/ora01/app/product/8.1.6/dbs/F1.Dbf
/ora04/oradata/data2.dbf

How can I select the last part of the line as my...
22,975
Posted By jhansrod
It works fine. Thanx
It works fine.

Thanx
22,975
Posted By jhansrod
Hi Vino Thanks for the responses. What if I...
Hi Vino

Thanks for the responses. What if I have my source listed in a file and want to use the for loop to do the copy. As mentioned, the copy works, but unfortunately does not copy the...
22,975
Posted By jhansrod
MY apologies, but what I forgot to mention is...
MY apologies, but what I forgot to mention is that I dont want all the files in the tree.
e.g.
/dir1/dir2/file1.dbf
/dir1/dir2/dir3/file2.dbf
/dir1/file3.dbf
/dir1/dir2/anotherfile.txt...
22,975
Posted By jhansrod
Copying a Directory Structure to a new structure
Hi all

Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf...
2,387
Posted By jhansrod
Format a line for output
Hi all

I have a problem which requires me to produce a line output in a specified format. I have looked around and see that there is typeset which would do the trick to pad a variable and as such...
Forum: IP Networking 06-30-2005
6,135
Posted By jhansrod
AIx 5.2 . model p270.
AIx 5.2 . model p270.
Forum: IP Networking 06-30-2005
6,135
Posted By jhansrod
Netstat issue
Hi all

When I run netstat, it just hangs there and after a while comes back. I cannot figure out why as the server is functioninng well.

Thx
J
Forum: AIX 06-23-2005
12,377
Posted By jhansrod
Use smitty tcpip -> further config -> static...
Use smitty tcpip -> further config -> static routes -> remove static route
Forum: AIX 06-21-2005
7,791
Posted By jhansrod
A simple solution would be to use a for loop :- ...
A simple solution would be to use a for loop :-
for x in `pg file`
do
ping -options $x
done

Hope this helps...
2,472
Posted By jhansrod
I forgot to mention, this is for AIX 5.2 system..
I forgot to mention, this is for AIX 5.2 system..
2,472
Posted By jhansrod
Top procs
Hi All

Does anyone have a way of finding out which are the top 10 proc's consuming CPU and memory from a script ?

I have loooked into ps, however cannot get a clear picture.

Thx

J
2,700
Posted By jhansrod
Processing inbound mail
Hi All

Has anyone written any script that would listen for inbound mail and based on its subject process the body ?

Thx

J
2,001
Posted By jhansrod
The formating did not come out correct. ...
The formating did not come out correct.
____Date_____|________IN_______|____OUT
xx.xxx.xx _____|_____item1_______|___item3
_____________|_____item2_______|___item5...
2,001
Posted By jhansrod
ok. I have the following files :- File 1 ...
ok. I have the following files :-
File 1 File 2
item1 item3
item2 ...
Showing results 1 to 25 of 80

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