Handling standard input with ruby

Here is a pretty basic example of a ruby script, which contains a function, defining a variable, grabbing data from standard input, and calling the function. #!/usr/bin/ruby   $variable = STDIN.gets   def function(variable) puts "Your STDIN is: #{variable}" end   function($variable) Example: [h1tman@h1tman ruby]$ echo "TEST" | ./stdin.rb Your STDIN is: TEST [h1tman@h1tman ruby]$
read more

autofs – mini “how to” as requested

This is a very high level revision of my previous post on autofs which outlines only the process to automount a home directory via NFS. Edit: /etc/auto.master Add: /home /etc/auto.home Edit: /etc/auto.home Add: * nfs.example.com:/home/& Once you are at this point you should be able to login and test.
read more