Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: ningy
Forum: Solaris 06-09-2014
2,803
Posted By ningy
So you mean to say number of virtual processsors...
So you mean to say number of virtual processsors equal threads which is 16 here?
Forum: Solaris 06-09-2014
2,803
Posted By ningy
CPU/processor/cores in M4000
Hi Gurus

Can someone help me in explaining the below outputs .

psrinfo -p
4

/usr/sbin/psrinfo -pv
The physical processor has 4 virtual processors (0-3)
SPARC64-VI (portid 1024 impl 0x6...
Forum: AIX 05-05-2014
6,226
Posted By ningy
Thanks. I need to find the media which contain...
Thanks. I need to find the media which contain the package now.
Forum: AIX 05-05-2014
6,226
Posted By ningy
Install EN_GB UTF-8 on AIX 5.3
Hello Gang

Can you please help me in installing EN_GB UTF-8 on AIX 5.3 .
I have worked on Solaris and Linux, but not familier with AIX so hoping if someone show the roadmap.
4,247
Posted By ningy
Yeah noted on the name, but still have the...
Yeah noted on the name, but still have the problem with our own custom scripts with unique names. Working on problem with PATH variable
4,247
Posted By ningy
ksh ./test is working. Looks like problem is...
ksh ./test is working.

Looks like problem is path variable as i did PATH=. and ran ksh test , it worked .
4,247
Posted By ningy
/usr/bin/ksh -xc "echo hello" + echo hello ...
/usr/bin/ksh -xc "echo hello"
+ echo hello
hello

---------- Post updated at 01:13 AM ---------- Previous update was at 01:10 AM ----------




But still

$ /usr/bin/ksh test (see here no...
4,247
Posted By ningy
the problem is not related to a single script. ...
the problem is not related to a single script.

even if I run a script with echo hello , it doesnt not work with ksh.
4,247
Posted By ningy
Script not working with ksh
Hi

I am not able to execute a script with ksh. Its not giving any error too.
I have tried with absolute path /usr/bin/ksh test.sh .
Also checked path variable and all looks fine

It runs fine...
1,367
Posted By ningy
Thanks . But looks complicated for for my level...
Thanks . But looks complicated for for my level of knowledge.
1,367
Posted By ningy
Redirecting/Capturing inputs supplied in interactive script
Hello

Is it possible to redirect standard input into a file in an interactive script like we do for standard out and input using &2 and &1.

Enter source :
hi
Enter destination :
bye


In...
1,461
Posted By ningy
Thanks for the inputs everyone. Yes, I was...
Thanks for the inputs everyone.

Yes, I was doing :

cp -rp source destination
ln -s dest source
rm -rf source

But failed while some new files getting written to.

I have just started...
1,461
Posted By ningy
the files are posted at random intervals . So I...
the files are posted at random intervals . So I would not be sure.

Requirement here is to clean up the source after proper copy .
1,461
Posted By ningy
Error check for copying growing directories
I have a simple script which copies directory from one place to another and deleting the source .
I am facing a situation when new files gets added when the script has started running. Its...
2,051
Posted By ningy
y dont u take a look at the /etc/passwd ? or...
y dont u take a look at the /etc/passwd ?

or command id username ?
981
Posted By ningy
awk -F"/" '{OFS="/";$NF="";print}'...
awk -F"/" '{OFS="/";$NF="";print}' gara
Forum: AIX 12-24-2012
1,773
Posted By ningy
if you GNU sed then, go inside the directory : ...
if you GNU sed then, go inside the directory :

sed -i '$d' *
Forum: AIX 12-20-2012
5,204
Posted By ningy
For stopping : lsof -i : portnumber or ...
For stopping :

lsof -i : portnumber

or

netstat -apn |grep port

find the corresponding PID for the port and kill it
25,723
Posted By ningy
perl -le 'print scalar localtime (time() -...
perl -le 'print scalar localtime (time() - 48*60*60);' |awk '{print $2 ,$3}'
Forum: Solaris 12-10-2012
1,768
Posted By ningy
i would suggest taking single user backup.
i would suggest taking single user backup.
1,237
Posted By ningy
That correct. So from the display i can choose...
That correct. So from the display i can choose only one option at a time like 1 then 2 and 3 etc..

But my question was if its possible to enter multiple choices like 1, 2 .. at one go?
1,237
Posted By ningy
Is is possible to pass multiple entries in PS3 select ?
PS3="Enter corresponding number and hit enter:"
select DIR in `cat mylist` QUIT
do
if [ -z "$DIR" ]
then
echo "INVALID INPUT"
else
if [ -d "$mysource/$DIR" ]; then
my commands ..... ...
1,360
Posted By ningy
Thanks a lot Batman. :) I will look for some...
Thanks a lot Batman. :)
I will look for some workaround.
1,360
Posted By ningy
Thanks for the above solution . Another tip I...
Thanks for the above solution .
Another tip I want for removing the chosen option to not appear in the options.
Say i chose 1) filname1 . I dont want it to appear again.

I have tried like below...
1,360
Posted By ningy
PS3 select when wrong input given
Hi All

I am using the below code to chose a file to view :

PS3="Select file to view : "
select FILE in `ls` QUIT
do
if [ -e $FILE ] ; then
clear
cat $FILE
else
break
...
Showing results 1 to 25 of 127

 

Featured Tech Videos

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