HPLIP 通过 PHP 发送传真
我想将传真功能集成到我们购买的带有内部开发的 php 应用程序的 HP MFP 上。
然而,我发现传真实用程序 hp-sendfax 尽管允许命令行选项,但如果我从 Ubuntu 服务器桌面运行,它就可以工作,但当我尝试从 Mac 从 Sah 会话到我们的 Ubuntu 服务器时,它拒绝工作。
有谁知道如何让它在纯命令行模式下工作?
I wanted to integrate the fax function on a HP MFP that we bought with php app developed in house.
However, I found that the fax utility, hp-sendfax, although allowing command line options, works if I run from out Ubuntu server desktop, it refused to work when I tried from Sah session to our Ubuntu server from my Mac.
Is there anyone who know how to get it work in pure command line mode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
hp-sendfax 应用程序是一个 python 应用程序,虽然我没有合适的设备来测试,但似乎您不想在 GUI_MODE 中运行(请参阅 var mode == GUI_MODE),这似乎可以从 args 设置,但是打开文件的栏,在第一个出现“if mode == GUI_MODE:”的地方之前设置“mode = NON_INTERACTIVE_MODE”
希望这对您来说很糟糕。否则,如果您使用 php,请查看 hp-sendfax 的作用,从快速扫描来看,它看起来像是连接到 dbus,而你们可以直接从 php 执行此操作。
The hp-sendfax app is a python app, though I dont have the right equipment to test, it seems you want to not run in GUI_MODE (see var mode == GUI_MODE) and this does seem like it can be set from args, but bar that open the file and just before the first place where 'if mode == GUI_MODE:' occurs you set 'mode = NON_INTERACTIVE_MODE'
Hope this wors for you. Else if you do php, see what hp-sendfax does, from a quick scan it looks like it is connecting to dbus which you guys might do from php directly.