Search Results

Search: Posts Made By: EagleFlyFree
7,898
Posted By EagleFlyFree
Actually, I wouldn't use Windows + Cygwin unless...
Actually, I wouldn't use Windows + Cygwin unless I could avoid it, which is not the case at work. It's somewhat notably slow.
I find Linux + Windows on Virtualbox more productive, and that's what I...
7,898
Posted By EagleFlyFree
I don't strictly need it, but I use it to get all...
I don't strictly need it, but I use it to get all my favorite software, such as bash, vim, diffing tools, git, ruby, perl, etc.
Cygwin lets you bring some of the Unix culture, tools and productivity...
7,898
Posted By EagleFlyFree
Yes, very helpful. Sometimes you don't have a...
Yes, very helpful.
Sometimes you don't have a choice of OS, and in those times, it's good to have Cygwin.
Personally, I couldn't survive my .NET job in an all Windows environment, if it wasn't for...
13,561
Posted By EagleFlyFree
For extra completeness: The reason why $(ls *)...
For extra completeness:
The reason why $(ls *) fails for files with spaces is that the default word separators for the shell includes spaces. So when the result of the substitution gets expanded by...
58,391
Posted By EagleFlyFree
Currently I use sudo -su weblogic ...
Currently I use

sudo -su weblogic
propmt.."pw"

how should I use it now? I tried using -S "pw" multiple places and it did not work.[/quote]

Sorry about the delay.

echo "password" |...
58,391
Posted By EagleFlyFree
According to man sudo: Remember to...
According to man sudo:


Remember to restrict read access to the script to hide the password.
25,624
Posted By EagleFlyFree
Don't mention it; I love yapping about bash. ...
Don't mention it; I love yapping about bash.
Its man page is long and daunting, but flick through it every once in a while; you're bound to learn great tidbits every time.
The parts about history...
25,624
Posted By EagleFlyFree
() executes the statements in a new subshell,...
() executes the statements in a new subshell, with separate state. {} executes stuff in the current shell.

Example:

(aVariable="hello"); echo $aVariable
this doesn't print "hello" because the...
25,624
Posted By EagleFlyFree
Specifically about reporting and exiting, this is...
Specifically about reporting and exiting, this is a slightly more condensed idiom:


test $condition || { print "Crap blew up; exiting"; exit 2; }


You could also directly test for the result...
Forum: Solaris 04-22-2009
16,747
Posted By EagleFlyFree
Also, daemons "fork off and die" on purpose to...
Also, daemons "fork off and die" on purpose to that effect, so as to detach themselves from their parents.
So most likely, what you see is normal operation for some daemon.
2,265
Posted By EagleFlyFree
How about separate threads for each file? No idea...
How about separate threads for each file? No idea about threading support in Perl though.
1,705
Posted By EagleFlyFree
IFS='\n|' cat inputFile | while read...
IFS='\n|'

cat inputFile |
while read field1 field2
do
grep "$field1" *"$field2"*
done
19,920
Posted By EagleFlyFree
This variation works with spaces: ...
This variation works with spaces:


IFS=$'\n'
tr \; \\n |
while read value1 value2 value3 ..............
do
doSomethingWith $value1
doSomethingWith $value2
done
Showing results 1 to 13 of 13

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