- Joined
- Apr 30, 2001
- Location
- Florida
I am trying to create a script for linux that allows you of all things to change the desktop trash icon. I know it is pretty easy to log into x windows as root and copy then paste it to the right directory but I thought this would make it easier. I have two problems so far. The first is that when I use the su command in the script to have the user login as root to start out the rest of the script won't continue until you exit being root. The second problem is that I don't know how or can't find any information on how to get a script to accept an input into the command line and then do something with it. For example I would use echo to display something like "Please type the path to the file you want to use". The user types the path and presses enter then the script copies that file to the right place. Any help?