Search Results

Search: Posts Made By: NarayanaPrakash
3,107
Posted By NarayanaPrakash
Thanks Carol but it throwing me error ...
Thanks Carol

but it throwing me error Usage: find [-H | -L] Path-list [Expression-list]
3,107
Posted By NarayanaPrakash
Copy files matching multiple conditions
Hello

How do i copy files matching multiple conditions. Requirement is to search files starting with name abc* and def* and created on a particular date or date range given by the user and copy it...
5,562
Posted By NarayanaPrakash
Copy files from Linux server local windows machine using a shell script
Hello,

I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine.

Is this possible.?
...
Forum: AIX 08-21-2013
12,630
Posted By NarayanaPrakash
@zaxxon so in general what are the...
@zaxxon

so in general what are the difference b/w ps o/p and topas (top or prstat) in terms of %cpu.

also in an AIX machine what is the better way to monitor cpu utilization for all the...
798
Posted By NarayanaPrakash
Then error while running script remotely
facing issue with then error while running a local script aginst a remote server. i facing the same issue in multiple scripts. So what i am missing here or what is needed.


#!/bin/ksh
echo...
2,757
Posted By NarayanaPrakash
somehow it is still not working i am still...
somehow it is still not working

i am still getting the error 0403-057 Syntax error at line 22 : `then' is not expected.
2,757
Posted By NarayanaPrakash
Execute a local script against a remote server
I am unable to run the below script against a remote server due to syntax error (then unexpected), but i am able to run it locally. Am i executing it correctly or is there any other way to execute...
Forum: AIX 07-30-2013
12,630
Posted By NarayanaPrakash
Run ps aux continuously in AIX
Requirement is to monitor cpu usage /process for a user given time and record the output. topas,topasout,topasrec,tprof not seems to be working for me. so what i am looking for is to run below...
Forum: AIX 07-30-2013
7,230
Posted By NarayanaPrakash
@zaxxon is it possible for nmon to record only...
@zaxxon is it possible for nmon to record only process related information (pid,process,user &cpu) ,similar to pressing t/u in nmon interactice mode.
Forum: AIX 07-29-2013
7,230
Posted By NarayanaPrakash
top -b is not available in AIX.
top -b is not available in AIX.
Forum: AIX 07-29-2013
7,230
Posted By NarayanaPrakash
Record topas command output
How to record output of below command in a text file.

topas -P

or is there any other command which will do the same thing in AIX.

I would like to get a report something similar to below...
5,083
Posted By NarayanaPrakash
Help with topas command
How do i display only one iteration of topas command. Ideally i would topas -P to show only one instance rather than keep on running. is there any swicth?
3,611
Posted By NarayanaPrakash
Format Top and prstat command output
need help with formatting output of command top and prstat. My requirment is to remove few columns and display remaining . But when i used awk to do that the output seems to be have gone vague,...
2,557
Posted By NarayanaPrakash
Dialog box in korn shell scripting
Does dialog box works on all kind of shells? I am using korn shell in Linux .
For me dialog is not working :) is there any particular syntax or do we need to have particular OS version or shell...
2,757
Posted By NarayanaPrakash
thank you Skrynesaver
thank you Skrynesaver
2,757
Posted By NarayanaPrakash
So will this work? top -b > ~/op.txt & ...
So will this work?

top -b > ~/op.txt &
sleep $seconds
kill $!
2,757
Posted By NarayanaPrakash
Cpu utilization script
I have a set of requirement

1)cpu utilization on a server with pid and and process name.
It should display the above and also the script should have an option to record the cpu utilization for a...
1,840
Posted By NarayanaPrakash
rbatte1...
rbatte1 (https://www.unix.com/members/302025710.html) https://www.unix.com/images/statusicon/user_online.gif
Registered User

thank you rbatte1.

i did some modification and now the script is...
1,840
Posted By NarayanaPrakash
How to avoid multiple ssh -o StrictHostKeychecking=no?
How do i avoid multiple ssh -o StrictHostKeychecking=no in the below script.


if [ "$#" == "0" ]
then
echo " Please mention the server name after the script"
elif ssh -o...
1,941
Posted By NarayanaPrakash
Grep help in scripting
Help me with meaning of below grep usages in scripting.




ps -ef | grep $name | grep -v grep | grep -v script.ksh | wc -l
grep -v "grep"
grep -v "scriptname"
grep -v grep
1,847
Posted By NarayanaPrakash
Thanks Corona688!! it worked!!
Thanks Corona688!! it worked!!
1,509
Posted By NarayanaPrakash
awk 'NR==FNR{A[$9];next}!($9 in A)' test.txt...
awk 'NR==FNR{A[$9];next}!($9 in A)' test.txt test2.txt --> change column name

above one will compare 9th column of two files and display the difference
1,847
Posted By NarayanaPrakash
sorry i am a novice , where do i need to add it?
sorry i am a novice , where do i need to add it?
1,847
Posted By NarayanaPrakash
I did called the function let me paste the...
I did called the function let me paste the complete things.

check_deplver ()
{
dir=/abc/def/ghi
if ssh -o StrictHostKeychecking=no $1 "[ -d $dir ]" 2> /dev/null
then
echo " output...
1,847
Posted By NarayanaPrakash
If loop inside function not working.
check_deplver ()
{
dir=/abc/def/ghi
if ssh -o StrictHostKeychecking=no $1 "[ -d $dir ]" 2> /dev/null
then
echo " output is "
ssh -o StrictHostKeychecking=no $1 "ls -lrt $dir |...
Showing results 1 to 25 of 25

 

Featured Tech Videos

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