Search Results

Search: Posts Made By: meili100
9,953
Posted By meili100
Why the nohup-ed background process always is "stopped" ?
I let a script A call script B.
I used
nohup a.sh &>/tmp/log &

In script A it calls B directly, without any redirecting or nohup or background.

However A is always "Stopped", while B is...
4,400
Posted By meili100
Why the nohup-ed background process always is "stopped" ?
I let a script A call script B.
I used
nohup a.sh &>/tmp/log &

In script A it calls B directly, without any redirecting or nohup or background.

However A is always "Stopped", while B is...
4,734
Posted By meili100
What's the difference between PMake and GNU Make?
My system is ubuntu, can I use PMake ?
4,102
Posted By meili100
Is this a bug of linux's "ls" command?
I found an interesting thing with ls. do the following steps in your linux:
open a terminal
mkdir x
cd x
echo "aaa" > test1
ls
<you will see test1>

Don't close the terminal, open another...
8,727
Posted By meili100
Thanks all. Can I get an official link or...
Thanks all.
Can I get an official link or resource for whether mv is atomic? I am writing a tech document of them. Thanks.
8,727
Posted By meili100
Is `mv dir dir2` atomic ?
if I rename a dir
mv dir dir2

Is this operation atomic? Suppose there 100 files in dir, does linux rename them one by one or at once?

In other words, is there a time at which both dir and...
7,133
Posted By meili100
BTW, I understand time can be used to measure...
BTW, I understand time can be used to measure command execution, say
time ls -ltr

BUT, how can I embed `time` in my script to measure the execution time? In other words, I want to record time...
7,133
Posted By meili100
Thanks. What do real, user, sys mean? `man...
Thanks. What do real, user, sys mean?
`man time` does not give any clue
7,133
Posted By meili100
Is there a way to tell how long does a shell script's execution take?
Is there a way to tell how long does a shell script(or a shell command)'s execution take?
24,424
Posted By meili100
Thanks, but what does ## mean here?
Thanks, but what does ## mean here?
24,424
Posted By meili100
how to use cut to get the last field of a string?
If I am not sure of how many fields a string has, say
STR=/homt/root/dir1/dir2/../dirn
how to use "cut -d/ -f" to get dirn ?
1,777
Posted By meili100
Really? Assigned "ww" to an empty string "" ?...
Really? Assigned "ww" to an empty string "" ? (Remember shell replaces $TEST with the empty string first)
25,139
Posted By meili100
Linux Shell Question: how to print the shell script name ?
Suppose I have a script named "sc.sh"
in the script how to print out its name "sc.sh"?
1,777
Posted By meili100
Thanks, what is the difference between: if [...
Thanks, what is the difference between:
if [ "$TEST" = "ww" ]
and
if [ "$TEST"="ww" ]

?
1,777
Posted By meili100
Something interesting of this command line
TEST is assigned as empty.

>TEST=
>if [ "$TEST"="ww" ] ; then echo not empty ; else echo empty ; fi

But it prints Not Empty. What's wrong here? Thanks.
5,271
Posted By meili100
What's wrong with this line: if ${TEST:?} ; then echo empty; fi
I want to print "empty" if $TEST is empty.

TEST=
if ${TEST:?} ; then echo empty; fi

But it doesn't work. What's wrong?
8,675
Posted By meili100
Thanks, I tried to follow the thread but my...
Thanks, I tried to follow the thread but my sendmail reports:

>/usr/sbin/sendmail
>sendmail: fatal: open /etc/postfix/main.cf: No such file or directory

BTW, is there a way to use "mail"...
8,675
Posted By meili100
How to use "mail" to attach a file with an email?
echo "content" | mail email@address -s subject
Where to attach a file with the email?
4,065
Posted By meili100
What is <<< in shell? for eg: tr [a-z] [A-Z] <<< "test"
I know < and << are for re-direction, but never heard of <<<
What is that?
BTW is there >>>?
3,655
Posted By meili100
Another dummy question: For IE I can...
Another dummy question:
For IE I can double-click it up-left corner to close the browser. how can I set Firefox to do that?
3,655
Posted By meili100
Why my firefox in Linux can't "go-back" ?
My firefox can't use BackSpace key to go back to previous page. Anybody knows how to set it?
5,077
Posted By meili100
Thanks, but how to explain why it works with...
Thanks, but how to explain why it works with somebody's bash ?
BTW the exact syntax works with my another machine, which has bash version:

$ bash --version
GNU bash, version 2.05b.0(1)-release...
5,077
Posted By meili100
Thank you. Here are all the info: $ ls ...
Thank you. Here are all the info:

$ ls
drwxr-xr-x 2 root root 4096 2008-02-20 12:03 olddir

$ mv olddir/ newdir/
mv: target `newdir/' is not a directory: No such file or directory

$ which...
5,077
Posted By meili100
Error: `mv olddir/ newdir/ ` never works on new version of bash?
Suppose you have a directory called "olddir" exists but no "newdir", you want to rename "olddir" to"newdir"
In previous versions (at least in 2.05b.0) of bash, you can try
mv olddir/ newdir/
OR...
Forum: Programming 06-15-2007
6,665
Posted By meili100
How to configure emacs? Thank!
I am using emacs to write c++ code. How to configure it to let the system highlight C++ keywords, variables, etc; and let it automatically indent, just like a common C++ IDE does?

Any suggestions?...
Showing results 1 to 25 of 33

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