Posted by Tim Galyean in Ruby
on Apr 28th, 2010
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]$
Posted by Tim Galyean in Operations
on Apr 18th, 2010
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.