> On Sat, Jun 21, 2008 at 7:16 AM, Andreas Hermann Braml > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > For future reference, the sudo'ian way to accomplish things like > this is: > > echo "0x7fffffff" | sudo tee /proc/sys/kernel/shmmax
Roberto Tavares schrieb: > Is it correct? > > It should write 0x7ffffff? > > The idea wasn't to change the shmmax file? Hi Roberto, the output you see on the command line is due to the "tee" command. This command duplicates its stdin. One copy goes to stdout, the other copy to the mentioned file. If you want to run more complicated commands as root, e.g. a whole pipe, you can do (note the quotes after -c ): sudo bash -c "echo 0x7fffffff|cat > /proc/sys/kernel/shmmax" this let sudo run a new shell (I used the /bin/bash) with root rights... Cheers Hermann _______________________________________________ Cinelerra mailing list Cinelerra@skolelinux.no https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra