Pages
Categories
Archives
Hosted by
Linux Archive
-
Bash Example Script #2
Posted on 5. January 2012 by Phylu | 1 CommentI have added the following function to my bash example script: # Run external command and only procced, when exit code is 0 function try { $@ returnValue=$? echo "$returnValue" if then log $ERROR "$@ exited with return value \ $returnValue Script will stop here." echo "$@ exited with ... -
Bash Example Script
Posted on 29. December 2011 by Phylu | 2 CommentsThese days I use bash more and more often for simple tasks on my Linux system, as well as for a University course I am taking. Have a look at the script: #!/bin/bash # Skript: bash_example.sh # Credit to: http://www.pro-linux.de/artikel/2/111/ #1,ein-shellskript-template.html # # I have added some usefull functions that I ... -
Print all files in a folder
Posted on 6. August 2011 by Phylu | 2 CommentsI needed to print all files, that I placed in a certain folder before. The following line will do the job: for i in *; do lpr "$i"; done; -
Suspend and USB
Posted on 29. May 2011 by Phylu | No CommentsNotice to myself: Bugfix for Arch not waking up usb devices after suspend: https://wiki.archlinux.org/index.php/Pm-utils#HAL_will_not_recognize_new_devices_on_resume -
Banshee 1.8
Posted on 19. October 2010 by Phylu | No CommentsRight now, my package manager pacman (I am using Arch Linux) updated the music player Banshee. The last stable version 1.6.1 was updated to version 1.8.0. The first things I recognized are: Some new menu entries on the left, as Amazon MP3-Shop and Miro Guide In the ...
