copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
Terminating an infinite loop - Unix Linux Stack Exchange To kill the outer loop I usually add a sleep command and press CTRL-C some more times: while :; do LONGTIME_COMMAND; sleep 1; done Please notice: the colon behind while is interpreded as TRUE, so this is an endless loop
what is the easiest way to configure serial port on Linux? In Windows command prompt to configure a serial port, I can simple use: mode com1: 9600,n,8,1 or to read the configuration: mode com1: Are there similar commands in Linux? What would be the easie
exit out of all SSH connections in one command and close PuTTY Is there a way to back out of all SSH connections and close PuTTY in "one shot"? I work in Windows 7 and use PuTTY to SSH to various Linux hosts An example of the way I find myself working: SSH
Bash while loop stop after a successful curl request Also, in while [ true ], the test checks if true is a non-empty string It obviously is, so this does work in giving an endless loop But [ false ] would also be always true, so a test like that is perhaps a bit misleading Could use while true; do instead
Removing a directory from PATH - Unix Linux Stack Exchange This unfortunately doesn't eliminate successive directory entries from the path, i e baz:foo:foo:bar removing foo becomes baz:foo:bar This is because the colon on both sides of the pattern matches baz[:foo:]foo:bar and because the last match ended with the colon, it doesn't pick up with the next :foo:
How to know where a program is stuck in linux? My first step would be to run strace on the process, best strace -s 99 -ffp 12345 if your process ID is 12345 This will show you all syscalls the program is doing How to strace a process tells you more If you insist on getting a stacktrace, google tells me the equivalent is pstack But as I do not have it installed I use gdb: tweedleburg:~ # sleep 3600 [2] 2621 tweedleburg:~ # gdb (gdb