So UI printing fails with no reason as always.
I hope that I can get more details by printing from command line.
Tried
smbutil print //user@host/share file
got:
smbutil: unknown command print
Do I have to install something?
(I have OS X 10.10)
So UI printing fails with no reason as always.
I hope that I can get more details by printing from command line.
Tried
smbutil print //user@host/share file
got:
smbutil: unknown command print
Do I have to install something?
(I have OS X 10.10)
What you are really looking for is a smbclient alternative using smbutil but just like you, I couldn't make it work.
So what you can do is to install samba with homebrew like this:
brew install samba
If brew link complains with:
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/auth
/usr/local/lib is not writable.
you can link smbclient manually:
cd /usr/local/bin
sudo ln -sfv ../Cellar/samba/3.6.25/bin/smbclient smbclient
sudo chown -R your_user /usr/local/bin/smbclient
Now you should be able to print like this:
smbclient "\\\\your.server.com\\YourSharedPrinter" -U "Domain\User" -c "print YouFileToPrint"
samba package has been removed from brew's core formulae. I tried installing it using brew install homebrew/boneyard/samba but that failed too, with the following error: Error: samba was moved to homebrew-boneyard because it has unfixable issues. Please do not file any issues about this. Sorry!.
– Ohad Schneider
Jan 25 '17 at 16:51
smbutil, right? That's what I was using and it says that the command is unknown – Uko Oct 13 '14 at 18:35printis not strictly a windows command; It's also present with the Linux version of smbutils, and it once was included in the OS X version. You are quite correct aboutlpr— this is the command one would use to print from terminal on OS X. – l'L'l Oct 13 '14 at 19:00