I am workikng on a script that takes the output of an application on my liunx server and prints the output. I have text from the user run with the program like such:
print `app $word`;
After realizing that this would allow &cmds and redirects I added print `app \"$word\"` which seems to work but I would like to know how to strip everything except a-zA-Z and typical word letters like '.
Also is there a better way of running an application?
Thanks,
Tom
print `app $word`;
After realizing that this would allow &cmds and redirects I added print `app \"$word\"` which seems to work but I would like to know how to strip everything except a-zA-Z and typical word letters like '.
Also is there a better way of running an application?
Thanks,
Tom