Search Results

Search: Posts Made By: hemangjani
Forum: Red Hat 09-08-2009
5,889
Posted By hemangjani
NFS - IP bind
Hello,

Our production linux server have multiple network interface.
Recently we installed and started NFS. Now the client server cannot mount to the server running NFS.

Later it was discovered...
Forum: Linux 08-12-2009
12,219
Posted By hemangjani
Within the script, I'm starting up an...
Within the script, I'm starting up an application. The application startup process does log various info.
When the script is manually executed, I do see the log from application startup. But, no...
Forum: Linux 08-12-2009
12,219
Posted By hemangjani
Script under rc3.d not being executed on server bootup
Hello all,

I have a script callled 'ABCstartup' setup under /etc/rc.d/init.d

Softlink 'S91ABCstartup' pointing to above script has been created under /etc/rc.d/rc3.d

The script is not being...
Forum: Linux 06-18-2009
22,869
Posted By hemangjani
Mark, Thank you for the response. I can't...
Mark,

Thank you for the response. I can't recall on how I started assuming that runlevel scripts have priority.

While I was searching online in regards to when rc.local, many sites have listed...
Forum: Linux 06-18-2009
7,087
Posted By hemangjani
Absolutely sure that no one restarted the...
Absolutely sure that no one restarted the process. The weird thing is that the Date is correct "Jun 17", just the time is incorrect.

According to the time 00:16:41, it should have displayed "Jun...
Forum: Linux 06-18-2009
22,869
Posted By hemangjani
Script under rc3.d Vs rc.local
Which of the following gets executed first?

script under rc3.d Vs script under rc.local

I was under impression that rc3.d has higher precedence over rc.local. Somehow it looks like the script...
Forum: Linux 06-18-2009
7,087
Posted By hemangjani
Process start time not showing correct time
Process start time is not showing the correct time:

I had started a process on Jun 17th at 23:30:00.
Next day morning when I run the command "ps -ef | grep mq", the process is showing the start...
2,878
Posted By hemangjani
I'm not sure if I understood the question...
I'm not sure if I understood the question correctly. But,

Why dont you use 'echo' instead of 'cat'

echo $f_name $path >> index.txt
17,001
Posted By hemangjani
Linux - Persistent routes not working
Hello,

I'm having problems with persistent routes.
I have the route added to route-eth1.

But when I run the 'route' command to display the routes, it does not show the newly added route.
I...
12,644
Posted By hemangjani
cron job - memory usage
I'm setting up a cron job to collect memory usage (total, used, available) information.

I'm planning to run the following in the cron sript:
free -k | grep ^M | awk -F' ' '{print...
3,994
Posted By hemangjani
I just tried the following and works like a...
I just tried the following and works like a charm...



sed "s/root/$hostname/" input.txt

or

sed "s/root/$hostname/" input.txt > output.txt



Make sure the its the "double quotes"
...
7,399
Posted By hemangjani
Check out the below post on cron and crontab: ...
Check out the below post on cron and crontab:

https://www.unix.com/answers-frequently-asked-questions/13527-cron-crontab.html

Lets see what kind of questions you have after that..
7,399
Posted By hemangjani
The above two solution would add .txt to the file...
The above two solution would add .txt to the file names.

But, as Jallan mentioned - he/she would be running a cron job everyday to add .txt to the new files add to that directory.

The above...
2,448
Posted By hemangjani
Considering the ''expr' error that you are...
Considering the ''expr' error that you are getting is from the code where you are trying to 'trim', than use the following:



trimmedMID_INFILE=`echo $MID_INFILE | cut -b 1-$len`



-...
1,771
Posted By hemangjani
Below should do it.. while read...
Below should do it..



while read nodename
do
/opt/OV/bin/ovet_topodump.ovpl -nodeif $nodename -detail
done < nodes.txt
5,487
Posted By hemangjani
Is this a school project ? :) If the length...
Is this a school project ? :)

If the length of the Segment is fixed -> 4 characters, than why do you need to have the rest of the junk in the output
eg:

1001A0010@
B0010*&^0)
5,487
Posted By hemangjani
This is one way to do it... I'm sure someone...
This is one way to do it...
I'm sure someone will have a shorter code than this.



while read record
do
uniq_id=`echo $record | awk -F'A' '{print $1}'`
part1=`echo $record | awk -F'B'...
3,780
Posted By hemangjani
You could run the following command: sed...
You could run the following command:

sed '/^$/d' < file1 > file2

file2 is the one without blank lines.

some of the version of sed allows '-i' switch to do in place. It saves the output in...
5,495
Posted By hemangjani
Denn, you are right. 1. ls -l | awk...
Denn,

you are right.

1. ls -l | awk '{print $9'} = ls -1 (no need for extra code)

Jartan,

Did you try what Denn provided?

ls -1 | xargs pkginfo 2> /var/tmp/errorfile

If the...
5,495
Posted By hemangjani
Wow. It is just surprising that its not catching...
Wow. It is just surprising that its not catching either std err or std out.

Lets try this:

ls -l|awk '{print $9}'|xargs pkginfo |grep -i error 2>&1 | awk -F'"' '{ print $2 }'


no while...
5,495
Posted By hemangjani
From what denn mentioned above, try the...
From what denn mentioned above, try the following:

ls -l|awk '{print $9}'|xargs pkginfo |grep -i error 2> temp1.txt

and then the while loop...

:-)
5,495
Posted By hemangjani
I apologize. I overlooked the 'ls' part. ...
I apologize. I overlooked the 'ls' part.

The quick way would be:

ls -l|awk '{print $9}'|xargs pkginfo |grep -i error > temp1.txt

while read record
do
echo $record | awk -F'"' '{ print $2...
5,495
Posted By hemangjani
I'm sure you are checking on each package at a...
I'm sure you are checking on each package at a time.
I guess you can try breaking into two steps:
1. Capture the error in variable
2. Run awk on the variable

example:

temp1=`ls -l|awk...
1,455
Posted By hemangjani
Hello, If I understand the question...
Hello,

If I understand the question correctly, you need to export the variable using the 'export' command.

Is that what are you trying to do?
3,036
Posted By hemangjani
could sudo read hash passwords? how?
Hello,

user ABC is granted sudo rights to start the application.
So upon attempting to start the application, user ABC is required to enter its password.

If we wanted to user ABC is create a...
Showing results 1 to 25 of 72

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