When I try to run the following peptest command, I get an error: t My code: Print test of the same string: It should be: Otherwise, ypeError: unsupported operation type ( S): For 'int' and 'dict' I really do not understand why I got this error when I print a string, then I am outputting the results which I hope.
p.sendline ("Sudo date -s \"% (easterndate) s \ "")% Local ( )
print "string output:" + sudo date -s \ "% (EasterDate) s \ ""% Local () Output: Sudo Date -S "Tuesday March 26 14:25:51 ADT 2013"
p.sendline (" Sudo date -s \ "% (easterdate) s \" "% local ())
% is applied to the result of
Sendline .
No comments:
Post a Comment