by brandon · 16y ago · 0 comments
system("echo '$mydata' > /home/rhett/usernick");
system('/home/rhett/music_player.rb &');
system('/home/rhett/servos/phidgets-examples/AdvancedServo-simple &');
As a former perl hacker, this kind of stuff was infuriating to me before, but it just seems silly now.Perl, Ruby, C, Javascript, Apache, SSL tunnels, an electric wheelchair, and hobby servos from phidgets.
We didn't mean to be misleading to the perl lovers, it was just too long to post all of that in the title.
Not more than a few lines of each, and it truly is more of a hack than anything else.
BTW, we just changed the 1 line of system("echo...") to have perl print the file to avoid any potential security vulnerability.
You know there's trouble when they use system("echo...") to write to a file!