Better handling of arguments/literals from the command-line?

Frank Ch. Eigler fche@redhat.com
Tue Oct 7 12:08:00 GMT 2008


Theodore Tso <tytso@mit.edu> writes:

> Another random thought; as people start creating more complicated (and
> hopefully more useful) turn-key stap scripts, it would be nice to be
> able to write scripts that have as their first line "#!/bin/stap" 

That has been working fine.

> and then let the user pass command-line options to the systemtap
> script which can be parsed out by a simple in-module getopt
> function.

While we don't have getopt per se yet, a script-side accessible
argv[]/argc value pair is available.  See the "argv" tapset.


- FChE



More information about the Systemtap mailing list