

InterviewSolution
1. |
Solve : Modify bash_profile to set permissions automatically? |
Answer» Hey all - Why are you using the pipe symbol? Did you mean ';' instead of '|'? I want them to execute the commands with one command, not three. The whole idea is to simplify setting permissions for WEB pages. The problem is it seems to want to execute all sessions at the same time, rather than in order. I tried using ';' instead of '|', and I got the same results. What is the difference, in theory, between ';' and '|'?Pipe takes the output of the command to the left of the pipe and sends it as input to the command to the right of the pipe. I really don't think you want to execute these commands simultaneously. If for example the first command happened to run a millisecond after the second and third commands, you'd just end up undoing the effects of the latter commands. (Think about it.) Anyway, as it happens, the Gnu version of chmod can do all this in one command, so how about this instead: Code: [Select]alias chmodWeb="chmod g-rwx,u+rwx,o+rx *" The ".*" is redundant in Linux/Unix. You're thinking of Windows/DOS. Quote from: Rob Pomeroy on March 22, 2012, 05:01:12 AM Pipe takes the output of the command to the left of the pipe and sends it as input to the command to the right of the pipe.This worked. Thanks a ton!You're welcome. |
|