Reputation
205
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 5
Newest
 Yearling
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 11 votes cast
Apr
2
awarded  Yearling
Mar
20
comment Redirect script output to /dev/tty1 and also capture output to file
Try : script -c "script -c 'your command /dev/tty1' /tmp/capture "
Mar
20
comment Redirect script output to /dev/tty1 and also capture output to file
Check to see if you have permission to write to the tty. "ls -l /dev/tty1". Fix permission if required.
Mar
17
comment Redirect script output to /dev/tty1 and also capture output to file
Don't redirect to /dev/tty, redirect to /tmp/capture. Then try tail -F /tmp/capture > /dev/tty1 & . Start the tail first in background. and kill when done.
Mar
17
comment How to run multiple scripts in parallel
I'm not sure. I think the script would just end and the processes would just be running in the background. If that is what you want, precede each command with nohup and be sure.
Mar
17
answered How to run multiple scripts in parallel
Mar
17
answered Redirect script output to /dev/tty1 and also capture output to file
Mar
16
awarded  Editor
Mar
16
revised sudo in non-interactive script
deleted 25 characters in body
Mar
16
comment sudo in non-interactive script
&& stops execution when the first command fails. The if statements do this more verbosely. My point is to get your work done, even if it isn't pretty.
Mar
16
answered sudo in non-interactive script
Mar
16
comment Do I need swap space if I have more than enough amount of RAM?
Have you thought about using swap files? The advantage is that it is much easier to modify the size of a file than of a partition. You can test with different sizes and check performance. You don't even need to reboot to increase your swap size. Just add a file.
Mar
12
awarded  Commentator
Mar
12
comment How to stop vim from inserting a new line when entering insert mode
Are you entering insert mode using "o' or "O". These open a line. Try using i, I, a or A
Mar
9
answered How do I make something launch graphically as root without going to the command line and running sudo?
Mar
9
answered How do I use my own local text editor to modify system (requires root to save) files on a remote system?
Mar
9
comment sanely run all scripts in a directory
You might want to rename all the scripts to *.sh *.bash or something. Then you can use *.sh to get your files and you will be sure nothing else in the directory will be executed. Dumb, but it works.
Mar
9
comment SUID accidently removed from /bin/su file
Is there a serial port on the machine? If you can attach a terminal or equivalent to it. If /etc/securetty has not been modified to disallow root access, you are in.
Mar
9
comment SUID accidently removed from /bin/su file
Does the machine mount any shares on from another machine. If so, you can copy su from your machine to a share that it is mounting, go the the file server and chmod the new su. Then run it.
Mar
9
comment SUID accidently removed from /bin/su file
Can you log in from the console? Doesn't require su.