Search Results

Search: Posts Made By: phil518
9,485
Posted By phil518
I do know the name of the process. Just trying to...
I do know the name of the process. Just trying to avoid going through each host to find it. :)
9,485
Posted By phil518
We use some type of LSF to submit jobs to a farm...
We use some type of LSF to submit jobs to a farm with lots of hosts.

I could tell a job is having issue, and wondering if there is an easy way to find out which host it is running at. (log file...
9,485
Posted By phil518
List processes that are running on other hosts
Hi:

How to list processes from all hosts, as opposed to the one you are working at?

"ps ux" appears to list processes of the user on a single host only.

Thanks.

N.B Phil
2,361
Posted By phil518
Thanks for all your responses. I just found...
Thanks for all your responses.

I just found this detail info, which confirms your explanation:

". (source or dot operator)

If filename does not contain a slash, the PATH variable is used...
2,361
Posted By phil518
Unexpected command/filename substitution ( caused by alias?)
Hi:

there is a shell script, with the name "foo", located in a bin directory. in the same time, there is an alias "foo='/path/bin/foo' ", just for convenience.

in my home directory, there is...
2,968
Posted By phil518
Xev can't detect Caps_lock
Hi:

I am trying to remap Caps_lock to something else but just encountered an unexpected issue: the xwindows can't even detect Caps_lock. I tried with xev, there was no events shown when Caps_lock...
Forum: Red Hat 11-19-2011
2,248
Posted By phil518
Thanks for the response. I could be wrong...
Thanks for the response.

I could be wrong in blaming it to the version control tool.

The hidden directories are under the "workspace" the tool has created, but it could be put there by our...
Forum: Red Hat 11-18-2011
2,248
Posted By phil518
directories hidden from "ls -al"
Hi:

I found some "hidden" directories created by a version control tool that can't be displayed by "ls -al". but user can "cd" into them and see the files inside.

My questions are:

1)...
5,239
Posted By phil518
Is above the typical locale setting in...
Is above the typical locale setting in hardware/software companies in US? (our source code, scripts don't have UTF characters, but not sure about the tools.)

If it is, then what is the typical...
5,239
Posted By phil518
Right on. Thank you very much. Here are our...
Right on. Thank you very much.

Here are our locale settings:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"...
5,239
Posted By phil518
It is GNU grep. Wow, 200 times longer for case...
It is GNU grep. Wow, 200 times longer for case insensitive grep. Those routines sound very heavy.

Is this a known fact?

is x200 the upper bound of the performance penalty, regardless the...
5,239
Posted By phil518
penalty for case insensitive grep
I just found out there were a big performance penalty for case insensitive "grep" on big files.

It would be understandable, except that the penalty seems to be exaggerated out of proportion.
...
3,100
Posted By phil518
Thank you very much for the answers. It makes...
Thank you very much for the answers. It makes sense now.

But, does it mean "0" is considered "true" as the return status, but is "false" as a value?

for example:
set tmp=0; if ( $tmp )...
3,100
Posted By phil518
Hi Citaylor: I totally understand that...
Hi Citaylor:

I totally understand that part.

But for GNU diff, the return status of "diff file1 file1" should be 0 (no difference found), while "diff file1 file2" should be 1.

Therefore,...
3,100
Posted By phil518
opposite return status in c shell
there is something wrong with my system. when I do this:
diff file1 file1 && echo 1

the output is 1.

but
diff file1 file2 >/dev/null && echo 1
output nothing

while
diff file1 file2...
2,019
Posted By phil518
Thank you very much. I tried it but found the...
Thank you very much. I tried it but found the improvement is not very substantial.

when I time the du command, I found the (utime + stime)/real time is only 3%.

is there a way to make this...
2,019
Posted By phil518
any quicker way to list disc usage by users?
Hi:

it takes a long time for "du -sh list_of_users" to give you the output.

Is there a quicker way to get this info?


Thanks!

N.B. Phil
13,389
Posted By phil518
Thank you very much gentlemen. You guys are...
Thank you very much gentlemen.

You guys are great!

NB Phil
2,030
Posted By phil518
Got it. this one seems to work: cd...
Got it.

this one seems to work:

cd `which cmd | xargs dirname`

Thanks.
13,389
Posted By phil518
Thanks for the reply. Did not realize the...
Thanks for the reply. Did not realize the difference between built-in and commands until now.

Basically, the xargs only searches the commands within the search path.

xargs did not complain...
13,389
Posted By phil518
Hi Corona: Thanks for the response. ...
Hi Corona:

Thanks for the response.

we are stuck in csh not by our own choice.

Are you saying that the xargs only supply args to commands or utilities, not to built-ins? Since 'cd' is a...
13,389
Posted By phil518
'echo dir_path | xargs cd' does not work?
Hi:

how come this command does not work? the error message is:
xargs: cd: No such file or directory

yet, in the same time, 'echo dir_path | xargs ls' works.

Does it work in bash? We...
5,760
Posted By phil518
Maybe it is the beginner's luck? :) the...
Maybe it is the beginner's luck? :)

the version of mine is:

GNU sed version 4.1.2
Copyright (C) 2003 Free Software Foundation, Inc.

Thanks.
5,760
Posted By phil518
Hi Methyl: Thanks for the answer, very...
Hi Methyl:

Thanks for the answer, very helpful to me to understand the sed better.

I guess I am confused somewhat by the fact that "sed 's%\n%%' fl" seems to work fine. So how come sed can...
2,030
Posted By phil518
Hi Methyl: Thanks for your responses! It...
Hi Methyl:

Thanks for your responses! It certainly works.

But I am just curious, how to make something like this to work:

cd ( dirname `which cmd` )

Why does csh complains about...
Showing results 1 to 25 of 42

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