8 More Discussions You Might Find Interesting
I have some difficulty to understand the scope of this program adapted from C++ book of D.S. Malik I am reading.
I put the header and the main program as attachment to save space. My problem is the output:$ ./prog1009_die
Line 4: Not yet rolled, die1 gets default number: 1
Line 5: Not... (5 Replies)
Discussion started by: yifangt
2. UNIX for Advanced & Expert Users
I think I discovered a bug in ksh.
$ cat test.sh
x=`echo hello | cat 2>&1 >/dev/null`
y=`echo hello | cat >/dev/null 2>&1`
works with all shells, including ksh in normal mode.
But does not work with ksh -x:
$ ksh -x test.sh
+ + echo hello
+ 2>& 1 x=1> /dev/null
+... (11 Replies)
Discussion started by: MadeInGermany
Im using the g++(g++ Ubuntu/Linaro 4.4.4-14ubuntu5 4.4.5) and im trying to compile a small snippet code and got into an endless loop.I recompiled that in VS2010 under Windows 7 and the answer is as expected.so i wonder is this a bug of g++?here is my code.
using... (5 Replies)
Discussion started by: homeboy
4. UNIX for Dummies Questions & Answers
#echo "infinite loop"
when I run this file I get the following error:
./test_infinite_loop: line 5: syntax error near unexpected token `fi'
./test_infinite_loop: line 5: `fi'
:confused: (4 Replies)
Discussion started by: jon80
xxxxserver# lsattr -El inet0 | grep 255.240.0.0,22.214.171.124,126.96.36.199 | grep '.40'
How this is possible? (1 Reply)
Discussion started by: itik
6. Shell Programming and Scripting
I am using Red Hat Linux on my servers. The problem that I am facing is, sometimes the /opt usage on the server shows used percentage as 100% , when actually it is simply 20%.
When I reboot the system, it comes back to 20%.Is this a bug in the system or my settings have gone wrong... (1 Reply)
Discussion started by: nua7
Guys there is another bug that has developed.........now messaged above 6 bytes are trimmed and echoed back to client.After the first message the echo is not regular.I have put a loop in both client and server to check for closing.Moreover for connection close i also need to put another clause that... (3 Replies)
Discussion started by: arjunjag
8. Shell Programming and Scripting
I'm having a problem with a while loop syntax that doesn't seem to loop correctly.
while read hostname
#for hostname in $(cat $CONFIG)
... (2 Replies)
Discussion started by: gilberteu