Search Results

Search: Posts Made By: Nakul_sh
3,015
Posted By Nakul_sh
How to open webpage through UNIX?
Hi friends,

I have UNIX (HP-UX) server. I want to open a webpage (lets say www.unixhelp.com (http://www.unixhelp.com/)) on this webpage there is one checkbox. I just need to check it. and click...
1,090
Posted By Nakul_sh
Search pattern in today's files only
Hi Friends,

I am in search of unix command which can search a particular pattern in all files which are created/modified today ONLY. Which is the best way to achieve this?

Thanks in advance.
2,228
Posted By Nakul_sh
High cpu usage
I have created one script and i have added it into cron to run after 10 mins. However I have noted that whenever that script runs, It causes CPU utilization of server to increase about 10-20 %
I...
1,621
Posted By Nakul_sh
HI Ravindar, Yes we can use the line...
HI Ravindar,

Yes we can use the line numbers, but I am not sure that everytime line number will be the same.
Is there any solution which include searching the values and changing it as per...
1,621
Posted By Nakul_sh
hi ravinder, These lines are selective lines...
hi ravinder,

These lines are selective lines from file. actual file contain 100s of lines. I just want to change these 3 values.
Is your code helpful in this case.?

Hi Makarand,

I already...
1,621
Posted By Nakul_sh
Thanks for your reply. But they are not working. ...
Thanks for your reply. But they are not working.
Also i want to make the changes into same file. I believe sed only gives monitor display of changes
1,621
Posted By Nakul_sh
Change the numbers
Hi friends,

i need a command which can be used to change the values in file.
I have file which contain some values.

Data_Center_costing=XXXX
Financial_loss=XXXX
operational_cost=XXX

I am...
83,194
Posted By Nakul_sh
Hi drl
hi drl,
seems that perl is available for me but i am very new to perl scripting.
Can you give me the exact code to resolve this problem.? I have generated .html file by using the code provided by...
83,194
Posted By Nakul_sh
Thank you drl,
Hi drl,
Thanks for your help
I saw your code in link provided by you.
I tried a few combinations. But probably i am doing something wrong.
Can you give me the code for above problem.? Also i am...
83,194
Posted By Nakul_sh
Output in table format
I have one script which generate file called report.txt having following output

parameter_name status comment
banking ok NA
finance 30% hike NA
Loan_department ok 20%
HR_Group defaulters Ajay...
1,001
Posted By Nakul_sh
------------------------------|------------------|...
------------------------------|------------------|
Parameter_Name |Status |
------------------------------|------------------|
Banking ...
1,001
Posted By Nakul_sh
Email formatting gets disturbed because of screen resolution
Hi friends,

I have written a shell script which send a report to email address everyday.
The report is generated on UNIX server every day, Generated report is sent to 25 users through cron. ...
6,015
Posted By Nakul_sh
Thanks for reply. Yes i can find out count of...
Thanks for reply.
Yes i can find out count of files by using
ls -lrt |wc -l
suppose it is 120
How can i delete the first 60 files then.?
File name is like Server_stat_log.2013-11-10
Will...
6,015
Posted By Nakul_sh
I am unable to find the logic to divide the files...
I am unable to find the logic to divide the files into half part. and delete the older files first. As i am not sure how much files are there in tmp directory, I am bit confused.
6,015
Posted By Nakul_sh
Command to delete half of files in directory.
Hello Friends,

I have directory called /tmp. which stores the log files.
Whenever it becomes full, i want to delete half of files from all log files.
even after deleting the files, if space...
2,575
Posted By Nakul_sh
I am using ksh. when there is problem in...
I am using ksh.

when there is problem in checking network status i get following blank output
after that i press ctrl+c on keyboard. to come-out to command prompt
Unix_buzz:>check_network


...
2,575
Posted By Nakul_sh
No. i dont pressed ctrl+c before 20 seconds.....
No. i dont pressed ctrl+c before 20 seconds.. Seems that there are some issues with PID only.

is it possible to use any other method to get PID,instaead of using $! and $$ signs.
2,575
Posted By Nakul_sh
Thank YOu very much, But it have some problems
I run this script and seems that there are some issues with PID when it attempt to kill. It remain hanged after below output. I need to press ctrl+c to come out to command prompt.
Unix_buzz:>sh...
2,575
Posted By Nakul_sh
Need help in restarting process
Hi friends,

I have one unix command which is used to check the network status manually.
followig is the command
check_Network this command give follwoing status
Network 1 is ok
Network...
4,646
Posted By Nakul_sh
Thank you for such a good explanation... But that...
Thank you for such a good explanation... But that command is not working for unix server for my application. :(
Is it possible by using wait command?
4,646
Posted By Nakul_sh
Thanks for your reply. Just wanted to confirm:...
Thanks for your reply.
Just wanted to confirm: I am working in Ksh. So will that command work?
alarm 15 will wait for 15 sec ?
Also what is pkill command is used for? does it act like ctrl+c ?
...
4,646
Posted By Nakul_sh
Thanks for your reply. While checking it manauly...
Thanks for your reply. While checking it manauly i do following. Lets assume i am checking Network2 process following is the command.

check_process_status 2
After entering the command i wait...
4,646
Posted By Nakul_sh
How to detect Hanged process in shell script?
I have to check daily 20 processes each day. The names are like Network1 Network2 Network3 ....... Network20.
There is built in utility for doing this. Following is the command to check a single...
2,429
Posted By Nakul_sh
i mean not directly login to server A. I am...
i mean not directly login to server A.
I am expecting "remote access" of server A through server B
2,429
Posted By Nakul_sh
not working
This command is not working.
Let me tell you in detail
I have script at following path on server A
/user/ns123/script
I login to server A and execute following command directly
sh ...
Showing results 1 to 25 of 50

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