)
Must be run as root, won't work otherwise. You can however add to
sudoers (man visudo) shutdown as NOPASSWD program for the users
that want to execute the script and use "sudo shutdown ..."
instead of just "shutdown ..."
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
2D
code, but this certain library is excellent:
http://www.libdmtx.org/
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
/bin
there:
mount --bind /usr/bin $chroot/usr/bin
The same has to be done with all library stuff. Another option
would be to place a statically linked busybox and it's
subprogram links into the chroot
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
gram
Files\Mozilla Firefox\firefox.exe
However the path largely differs from system to system. On *nix
systems you normally have all programs in $PATH, so a non full
qualified path would be sufficient. On Windows this works, too,
_IF_ the installation directory of the to be used application
get's added to the PATH environment variable.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
ions forward, where it
hits the assign instruction, which assignes a value from a table
by an index given into a variable. We're not talking about
Python here.
I introduced this "architecture" just to showcase that even in
the most "optimal" situation, where special RISC o
e
thinking of Python you can bet, that an opcode will not contain
all information, but have the operands encoded in additional
values, consuming memory.
Look up Table is more efficient: Debate solved.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
oot password for
the gateway.
If you're still up on making screenshots, I'd recommend to
install a VNC deamon, as a _system service_(!), to which the
alarm action program connects to make screenshots.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 1346828
Paul Rubin wrote:
> Wolfgang Draxinger <[EMAIL PROTECTED]> writes:
>> Am I just blind for some urllib2/httplib feature, or some
>> other library? Or do I really have to fiddle around with
>> sockets myself (I hope not...).
>
> I did something like that by just o
nd with sockets
myself (I hope not...).
Thanks in advance
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
information to
deobfuscate it. So even self modifying code doesn't help here.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
nterface
you have to reimplement the stuff from grounds up.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
Marc 'BlackJack' Rintsch wrote:
> You mean reading the file without actually reading it!? :-)
Linux provides its specific syscall 'readahead' that does exactly
this.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://
e.
Especially you don't have to use the standard frontends, but can
also use BitTorrent modules in your own Python programs.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
off in this NG: webmail
apps for mod_perl or mod_ruby would be acceptable, too.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
essing a _large_ distributed Oracle9i DB -
a query can take up to half a minute, so obviously I'm caching
the results of previous queries in the mentioned files, where
the modification time is the sorting criterium for later
reading.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAI
rt will sort on mtime, then on filename
> #
> flist.sort()
> #
> # Extract a list of the filenames only and return it
> #
> return [x[1] for x in flist]
> #
> # or if you only want the basenames of the files
> #
> #return [os.pa
es.sort()
filenames = list()
for mtime in mtimes:
fnames = files_dict[mtime]
fnames.sort()
for fname in fnames:
filenames.append(fname)
return filenames
Wolfgang Draxinger
--
E-Mail address works, Jab
tinue
src_file_paths[os.stat(fpath).st_mtime] = fpath
for ftime in src_file_paths.keys().sort():
read_and_concatenate(src_file_paths[ftime])
of course listdir and sorting could be done in a separate
function, but I wonder if there was a more elegant approach.
Wolfgang Draxinger
--
E-Mail address
would know
> where to start and would blame some horrible programming on my
> end. This just seems like a less straightforward problem.
GCC 3.x.x brings other runtime libs, than GCC 4.x.x, I would
check into that direction.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
reas the latter is better if
you need random access to the individual files.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
--
http://mail.python.org/mailman/listinfo/python-list
upports hard links and soft links, too but I don't know if
those got the same constraints.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E
--
http://mail.python.org/mailman/listinfo/python-list
fore I make more dumb mistakes/typos...
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E
--
http://mail.python.org/mailman/listinfo/python-list
7;t close them. You have to close it, to remove all
remains of it.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E
--
http://mail.python.org/mailman/listinfo/python-list
dissappears from the
>> file system) but the opening process can still access it.
>>
>> 4: close the file -> the lock is removed and the rename
>> finalized.
The open is to happen on the new file name with O_CREAT | O_EXCL
flags. Sorry, I forgot that to mention explicitly.
he file
system) but the opening process can still access it.
4: close the file -> the lock is removed and the rename
finalized.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E
--
http://mail.python.org/mailman/listinfo/python-list
Leon wrote:
> http://www.processing.org/reference/index.html). The closest
> thing I could find was devachan -
Hava a look at Amanith http://www.amanith.org
OpenGL is that "low" level by design. Everything beyond is to be
packed into other libraries.
Wolfgang Draxinger
--
E-Ma
Daniel O'Brien wrote:
> How one actually makes use of decorators beyond the above is an
> exercise of imagination.
Now it rings a bell, thx.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A64
mething like POV
Scene Description Language or similair).
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E
--
http://mail.python.org/mailman/listinfo/python-list
I'm just reading the python language reference and came around
the term "decorated functions", but I have no idea, for what
they could be used.
Any reply gracefully accepted.
Wolfgang Draxinger
--
E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867
GPG key FP: 2FC8
29 matches
Mail list logo