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

  • 0 posts edited
  • 0 helpful flags
  • 13 votes cast
Jul
1
comment bash scripting and PS1 prompt
Verify the prompt is what you want by echo $PS1 | hd -c. You may want to avoid the color variables and place them inline. This way you can change the double quotes to single quotes and avoid some shell interpretation.
Jun
19
comment Can I find the filesystem a file is going to be installed to?
Yes. Sorry about that. Corrected.
Jun
19
revised Can I find the filesystem a file is going to be installed to?
deleted 2 characters in body
Jun
19
answered Can I find the filesystem a file is going to be installed to?
Jun
10
comment How can I put a bit mask on /dev/zero so that I can get bytes other than zero?
Given your implementation, you could have a symbolic link from from /dev/capbee to /dev/zero, search for /dev/capbee and leave /dev/zero alone. //dev/zero won't bee the same as /dev/zero.
May
13
answered Unix with few packages
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