Mikael Høilund
10/18/2008 10:46:00 PM
On Oct 19, 2008, at 0:31, Adam Walters wrote:
> If i try executing the command from the terminal i get the following:
>
> -bash: require: command not found
Sorry, my silly mistake. It wasn't actually working.
I've definitely gotten it to work now by putting the direct path to =20
Ruby in the shebang line, instead of env. It works without setting any =20=
execute permissions. My file looks like this:
--8<----
#!/usr/bin/ruby
system "touch ~/Desktop/works_#{rand(65535)}"
--8<----
Modify /usr/bin/ruby if that's not your Ruby's path. Make sure there =20
are no spaces in the first line at all.
Now I've gotta delete a bunch of empty files from my desktop :<
--=20
Name =3D "Mikael H=F8ilund"; Email =3D Name.gsub %r/\s/,%#=3D?,#
*a=3De=3D?=3D,!????,:??,?,,Email.downcase![eval(%["\\%o\\%o"]%
[?**2+?o,?\\*2])]=3D"o";Email.gsub! %%\%c%*3%a, %?%c? % ?@
def The(s)%%\%s.%%s+%.org\n.end; :Go and print The Email