Posted: Thu 13 Oct 2005, 17:56 Post subject:
need a little help making a script.
Whats up guys? I am trying to make a script do something that might seem strange to you but I think it will be cool when I am all done. I have almost no script making skills but what I am trying to do isn't hard. I place the script into /usr/bin and call it lpr, the script code follows:
cp $1 /print/
simple enough right? all i want it to do is when i want to print someting (anything) it copys the file into the directory /print/ instead of actually printing anything. For some reason it's not working. I can do it but only if im in the /usr/bin directory. I can "lpr (name of file)" and it works fine of course when i am in /usr/bin, but if im at ~/ or something it says "Cant open lpr." Also when I use gui programs like abiword or mozilla i dont know what happens but the file doesnt end up in /print/ when i push the print button.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum