crp Posted May 14, 2012 Share Posted May 14, 2012 (edited) get a 403 error when I try posting the following http://tinypic.com/r/6sxa8j/6 (ignore the typo in the image, I had tried with proper bracket on code close as well) Edited May 14, 2012 by crp Quote Link to comment Share on other sites More sharing options...
securitybreach Posted May 14, 2012 Share Posted May 14, 2012 You must of posted one of the "banned" words that trigger the error message: "wget" "lynx" "tail" "uname" "gcc" Anytime I need to type those words, I either put them in quotes or use dots: i.e. g.c.c. http://forums.scotsn...showtopic=21483 Quote Link to comment Share on other sites More sharing options...
crp Posted May 14, 2012 Author Share Posted May 14, 2012 (edited) You must of posted one of the "banned" words that trigger the error message: [/color] Anytime I need to type those words, I either put them in quotes or use dots: i.e. g.c.c. http://forums.scotsn...showtopic=21483 took out alias and grep . what else could it be? and obviously alias and grep are not problem words. Edited May 14, 2012 by crp Quote Link to comment Share on other sites More sharing options...
securitybreach Posted May 14, 2012 Share Posted May 14, 2012 What are you trying to post? There has to be something your not seeing Quote Link to comment Share on other sites More sharing options...
securitybreach Posted May 14, 2012 Share Posted May 14, 2012 http://tinypic.com/r/6sxa8j/6 (ignore the typo in the image, I had tried with proper bracket on code close as well) Well for one thing, you are missing the first bracket in the closing code part: [/code] Quote Link to comment Share on other sites More sharing options...
securitybreach Posted May 14, 2012 Share Posted May 14, 2012 And to answer your question, you need to add the alias in ~/.bashrc: ╔═ comhack@Cerberus 03:14 PM╚═══ ~-> cat .bashrc # #Check for an interactive session #alias ls='ls --color=auto' alias rb='dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot' alias ya='yaourt -Syua' export PS1="\n╔═ \[\033[01;32m\]\u@\h \[\033[01;0m\]\@ \n╚═══ \[\033[01;36m\]\w\[\033[01;34m\]->\[\033[00m\] " export PS2="\[\033[01;34m\]->\[\033[00m\] " set show-all-if-ambiguous on export VISUAL="vim" export EDITOR="vim" export BROWSER="/usr/bin/google-chrome" The syntax is alias='command' BTW You need the single quotes around the command Quote Link to comment Share on other sites More sharing options...
crp Posted May 14, 2012 Author Share Posted May 14, 2012 I don't want the alias in the .cshrc, i just wanted it for the active session. single quote worked, so that is good. How can I do it so the it accepts a command line paramater? using $1 instead of pirate and then trying grepm pirate grepm 'pirate' grepm "pirate" all resulted in error of grep: pirate: No such file or directory Quote Link to comment Share on other sites More sharing options...
securitybreach Posted May 14, 2012 Share Posted May 14, 2012 Well I am not for sure but would it not be?? alias='grepm pirate' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.