Skip to content
/ libstfu Public

An LD_PRELOAD library to silence the standard IO by executable name.

License

Notifications You must be signed in to change notification settings

raoz/libstfu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libstfu

This is a small LD_PRELOAD library that will direct stdout and stderr to /dev/null for specified executables by name.

Usage

Example usage (assuming libstfu.so is in LD_LIBRARY_PATH, otherwise must give a path to libstfu.so):

STFU_EXE=someloudprogram LD_PRELOAD=libstfu.so someprogramthatexecutessomeloudprogram

Multiple targets can be specified by separating with colons:

STFU_EXE=someloudprogram:anotherloudprogram LD_PRELOAD=libstfu.so someprogramthatexecutesthem

Contributing

Pull requests are welcome.

License

Libstfu is licensed under the 3-Clause BSD License.

Credits

Thanks to @mikroskeem for implementation in pseudocode.

About

An LD_PRELOAD library to silence the standard IO by executable name.

Resources

License

Stars

Watchers

Forks

Packages

No packages published