After playing around with irb a bit, here's what I found The backtick operator invokes the shell after ruby has done any interpretation necessary. For my test case, the strace output looked something like this: execve("/bin/sh", "sh", "-c", "echo at 12:57 output You can always use strace or truss to see what's happening. For example: strace -o strace.
Out -f -ff -p $IRB_PID Then grep '^exec' strace. Out to see where the command is being executed.
After playing around with irb a bit, here's what I found. The backtick operator invokes the shell after ruby has done any interpretation necessary. For my test case, the strace output looked something like this: execve("/bin/sh", "sh", "-c", "echo at 12:57 output You can always use strace or truss to see what's happening.
For example: strace -o strace. Out -f -ff -p $IRB_PID Then grep '^exec' strace. Out* to see where the command is being executed.
I was able to get it to at least compile and run without spitting back junk at me with at -t\"#{(Time. Now + 60). Strftime("%m%d%H%M")}\" Root}/lib/parking_timer.
Sh" "4" However it doesn't pass the variable whereas calling the script directly, it does. Sh parking_timer. Sh 4 It doesn't seem to matter if I have the quotes around 4 or not or around the script path.
– Andrew Mar 31 '10 at 18:42 I made some major changes after doing some investigation. – Kaleb Pederson Mar 31 '10 at 20:11 Thanks, got it working with this output = #{Rails. Root}/script/runner -e development #{Rails.
Root}/lib/ParkingTimer. Rb #{4. To_s} | at -t#{(Time.
Now + 60). Strftime("%m%d%H%M")} It completely bypasses the . Sh script but so what.
Output is still blank, which will likely cause problems for me down the road, (can't find the job to delete if need be). – Andrew Mar 31 '10 at 20:45 Nevermind the bit about not being able to get the output. I can just run another output = at -l command immediately after and grab the job number by splitting the output... arr = output.
Split(" ") job_num = arrarr. Length - 6 – Andrew Mar 31 '10 at 21:07.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.