jpschewe / rootsh Goto Github PK
View Code? Open in Web Editor NEWA wrapper for a shell which will make a copy of everything printed to the terminal.
License: GNU General Public License v3.0
A wrapper for a shell which will make a copy of everything printed to the terminal.
License: GNU General Public License v3.0
Attempting to build a debug binary with "-Werror" causes problems.
# tar xf rootsh-1.6.3.tar
# cd rootsh-1.6.3
# aclocal
# autoheader
# autoconf
# automake --add-missing
# make clean
# CFLAGS="-O0 -g" ./configure
# make
Making all in src
make[1]: Entering directory `/export/install/software/rootsh/rootsh-1.6.3/src'
make all-am
make[2]: Entering directory `/export/install/software/rootsh/rootsh-1.6.3/src'
gcc -DHAVE_CONFIG_H -I. -DCONFIGFILE="\"/usr/local/etc/rootsh.cfg\"" -O0 -g -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wpointer-arith -pedantic -Werror -MT rootsh.o -MD -MP -MF .deps/rootsh.Tpo -c -o rootsh.o rootsh.c
rootsh.c: In function `main':
rootsh.c:347: warning: unsigned int format, pid_t arg (arg 5)
rootsh.c: In function `beginlogging':
rootsh.c:739: warning: unsigned int format, pid_t arg (arg 11)
make[2]: *** [rootsh.o] Error 1
make[2]: Leaving directory `/export/install/software/rootsh/rootsh-1.6.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/install/software/rootsh/rootsh-1.6.3/src'
make: *** [all-recursive] Error 1
Currently rootsh always exits with a success status unless there is an error starting up. The parent process needs to watch the child process for exit and pass the status along when it exits. This should be possible using pselect instead of select.
It looks like the color information isn't stripped when sending to syslog. I get a ton of stuff like this:
root: 034: #033[K[09:09:21][/tmp]#
root: 035: #033[K[09:09:21][/tmp]# ls
root: 036: total 5.7M
root: 037: drwxr-xr-x 15 root root 4.0K Aug 13 21:09 #033[0m#033[01;34m.#033[0m/
root: 038: drwxrwxrwt. 5 root root 4.0K Aug 13 21:09 #033[30;42m..#033[0m/
Is there any way to strip that?
Thank you very much for your help and your project!
There are a few #defines to decide how rootsh behaves at runtime. If this tool is really going to be put in a distribution, users need to be able to change these settings without rebuilding the application.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.