I got a motorola triumph and I am dumb! LOL I came here to learn how to tricky tricky tricky my phone :P hope I find good infos about how to trick trick trick :P
Hi Unix.com people! :) My question, I think, it's easy to understand. I want to configure my sudoers file (/etc/sudoers) in order to hide automatically, some repetitive and annoying commands to be listed on auth.log (/var/log/auth.log). Anyone know something, or know where I can find more info about it? Thanks in advance for your effort. See you!
How would I run several commands as below so that the last line executes (cleans up) after all the background ones are done?
echo "oyoy 1" > file1 &
echo "yoyoyo 2" > file2 &
rm -f file1 file2
Of course the echo commands are different for me and take a long time to finish (I can delete the files manually or with another script I know, but I was wondering how to have this done in o
I do lots of automatizing in Emacs, by stacking commands that I know from using manually.
I need to build the following command in linux using ProcessBuilder:
sudo packit -t UDP -S 1000 -D 1200 -s 127.0.0.1 -d 192.168.1.1 -c 5 -n 12345 -p '0x 80 64 45 78 00 00 27'
I tried with the following code:
commands.add("sudo"); commands.add("packit");
commands.add("-t"); commands.add("UDP");
commands.add("-S"); commands.add("1000");
commands.add("-D"); commands.add("1200");
commands.add("-s"
> echo "hi"
hi
> VAR='echo "hi"'
> $VAR
"hi"
Why is the output of the above commands different?
A similar thing occurs with single quotes:
> VAR="echo 'hi'"
> $VAR
> 'hi'
So,
I tried installing LAMP but messed up on the MySQL bit.
Here is the tutorial I used:
http://www.howtoforge.com/ubuntu_lamp_for_newbies
Here is what Step 3 says:
Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal:
mysql -u root
That's exactly where it gets tricky.
Beside the usual setup where I create a normal user foo, I want to run a few
d-i preseed/late_command commands as that foo user.
My initial thought was to simply call those commands with sudo, e.g:
d-i preseed/late_command in-target echo "<pwd>" | sudo -Si <command>.
This works for some sort of commands.
In my opinion is it working the whole time. As Army recommended I checked what the missing commands in this file are doing (like stat_busy) and apparently it's only output stuff. Therefore I replaced all of them by simple echo commands (e.g. stat_done --> echo 'done').