Example: export IFS=$’\n’ for i in $(find .); do echo LEXO$i done It work better for me under GNU/Linux Slackware, but is reported that under GNU/Linux Ubuntu it doesn’t work and the change for it is: Example: export IFS=$’ ‘ # in the second line, generating the newline for i in $(find .); do echo [...]
Archive for the 'Programming' Category
LightBlue is a cross-platform Bluetooth API for Python which provides simple access to Bluetooth operations. It is available for Mac OS X, GNU/Linux and Nokia’s Python for Series 60 platform for mobile phones. LightBlue provides simple access to: * Device and service discovery (with and without end-user GUIs) * Standard socket interface for RFCOMM and [...]
This is an alternative of fork in PHP with exec() function: exec(“/bin/ping 192.168.0.1 -c 12 2>/dev/null >&- /dev/null &”); Sources: http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/ http://immike.net/blog/2007/04/08/fork-php-and-speed-up-your-scripts/
Some times we don’t want that command print out messages, and we need to clean all out messages (error or standard out) that it generates. For to solve this, we are going to use the I/O facility provided by BASH. BASH provide 3 file descriptors, and they are: 0 – stdin – Used for get [...]
