Hi, Im trying to print a txt file on a remote PC using php... I have got this to work with a windows machine using xampp and then using the following php file and a batch file:

PHP Code:
start /min notepad /p print.txt
Can i do the same thing in ubuntu using xampp?? I know i can print using the "lpr print.txt" command but i doesn't work when i put it directly into the php file or in a sh script because i can't seem to get php to run the scritp

Thanks in advance

PS: I don't know anything about php or shell scripting... I'm just winging it