AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-489376

an0nhi11's questions

Martin Hope
an0nhi11
Asked: 2021-11-05 09:28:01 +0800 CST

如何并行运行 PDF 到 TIFF 的转换?

  • 1

我在这里有这个命令,用于将 PDF 文档(前 2 页)批量转换为使用pdftoppm.

目标是将 TIFF 图像放入其自己的文件夹中,文件夹名称与原始 PDF 文件名匹配。

for file in *.pdf; do
    pdftoppm -tiff -f 1 -l 2 "$file" ~/tiff/directory/"$file"/"$file"
done

如何同时运行 8 个pdftoppm命令实例?

我正在运行 Debian。我有 10000 份要转换为 TIFF 的 PDF。

shell-script conversion
  • 2 个回答
  • 224 Views
Martin Hope
an0nhi11
Asked: 2021-10-09 10:15:06 +0800 CST

如何在 Wayland 上使用剪贴板-cli?

  • 1

我正在使用这个模块gtts-cli进行文本到语音的转换。

更多信息在这里-> https://gtts.readthedocs.io/en/latest/cli.html

基本语法是

$ gtts-cli 'hello' --output /tmp/hello.mp3 && vlc --play-and-exit /tmp/hello.mp3 && rm /tmp/hello.mp3

我想编写一个 bash 脚本,其中突出显示的文本(例如来自 firefox)作为变量发送到上述语法中的文本部分(用引号括起来)。我在 Wayland,所以我不能使用xsel. 然后,在 VLC 播放完 mp3 文件后,我希望 vlc 自动关闭并最终删除生成的 mp3 文件。最终,我想将脚本绑定到键盘快捷键。突出显示屏幕上的一些文本,然后使用快捷方式运行脚本。

有没有更简单的方法来实现这一点?gtts-cli 'hello'输出一堆随机字符。是否可以将stdoutasgtts-cli 'hello'传输stdin到 VLC?

shell-script clipboard
  • 1 个回答
  • 685 Views
Martin Hope
an0nhi11
Asked: 2021-09-01 17:32:53 +0800 CST

我无法ping通网站。我可以ping ip地址

  • 0

我似乎无法 ping 网站。

ping google.com
PING google.com(lax17s50-in-x0e.1e100.net (2607:f8b0:4007:815::200e)) 56 data bytes

在这里我可以nslookup 没问题。

nslookup google.com                                                                 10 ⚙
Server:         192.168.228.125
Address:        192.168.228.125#53

Non-authoritative answer:
Name:   google.com
Address: 142.250.72.174
Name:   google.com
Address: 2607:f8b0:4007:815::200e

在这里我可以ping ip地址没问题

ping 142.250.72.174                                                           130 ⨯ 10 ⚙
PING 142.250.72.174 (142.250.72.174) 56(84) bytes of data.
64 bytes from 142.250.72.174: icmp_seq=1 ttl=113 time=529 ms
64 bytes from 142.250.72.174: icmp_seq=2 ttl=113 time=244 ms

在这里我可以没有问题。

wget google.com                                                                 1 ⨯ 10 ⚙
--2021-08-31 21:23:09--  http://google.com/
Resolving google.com (google.com)... 2607:f8b0:4007:815::200e, 142.250.72.174
Connecting to google.com (google.com)|2607:f8b0:4007:815::200e|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently

我的网络接口

cat /etc/network/interfaces                                                         10 ⚙
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

recolv.conf

cat /etc/resolv.conf                                                          148 ⨯ 11 ⚙
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "resolvectl status" to see details about the actual nameservers.

nameserver 192.168.228.125
nameserver 2600:100e:bf12:3b9b::92
nameserver 2600:100e:bf12:3b9b::c4

我也可以很好地浏览网站。我应该怎么办?

我运行 kde 并试图让wireguard 工作,但我想我在这样做的时候搞砸了一些东西。现在试图撤销我所做的。关于如何让 ping 正常工作的任何建议?谢谢你。

networking dns
  • 1 个回答
  • 439 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve