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-162258

crossmax's questions

Martin Hope
crossmax
Asked: 2019-09-06 04:31:48 +0800 CST

如何从 crontab 作业向 stdout 和 stderr 添加时间戳?

  • 0

当我从 cron 任务调用脚本时,我想将时间戳跟踪放入两个不同的文件中。一个文件用于 stdout script.log,另一个用于 stderrscript.err

使用此 cron 行,我可以在文件上获得时间戳script.log,但不能使用script.err

*/1 * * * * ((/home/user/script.sh) | ts "\%H:\%M:\%.S ->") 2>>/home/user/script.err >> /home/user/script.log

我如何也可以添加时间戳script.err?

shell-script cron
  • 1 个回答
  • 419 Views
Martin Hope
crossmax
Asked: 2019-07-11 01:09:02 +0800 CST

Debian 7 生命周期结束我无法安装任何东西

  • 1

我有一个带有 debian 7 (wheezy) 的 vps,我无法从它的存储库安装任何包。我以前从未使用过报废发行版,我想知道是否可以更改官方存储库以继续安装一些我需要的软件包。

我的vps的一些信息:

PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"

猫 /etc/apt/*.list

deb http://ftp.us.debian.org/debian/ stable main non-free contrib
deb http://ftp.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main

sudo apt-get 更新

Obj http://ppa.launchpad.net trusty Release.gpg
Obj http://ppa.launchpad.net trusty Release                         
Obj http://ppa.launchpad.net trusty/main Sources                                           
Obj http://ppa.launchpad.net trusty/main i386 Packages                                                             
Obj http://ppa.launchpad.net trusty/main Translation-en                                                            
Ign http://ftp.debian.org wheezy Release.gpg                                                  
Ign http://ftp.debian.org wheezy Release                            
Ign http://ftp.debian.org wheezy/main i386 Packages/DiffIndex           
Ign http://security.debian.org wheezy/updates Release.gpg               
Ign http://security.debian.org wheezy/updates Release
Ign http://security.debian.org wheezy/updates/main i386 Packages/DiffIndex
Obj https://deb.nodesource.com wheezy Release.gpg      
Obj https://deb.nodesource.com wheezy Release                                    
Obj https://deb.nodesource.com wheezy/main Sources                                                      
Obj https://deb.nodesource.com wheezy/main i386 Packages                         
Ign http://ftp.debian.org wheezy/main Translation-es_ES                           
Ign http://ftp.debian.org wheezy/main Translation-es    
Ign http://ftp.debian.org wheezy/main Translation-en    
Err http://ftp.debian.org wheezy/main i386 Packages     
  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]
Ign http://security.debian.org wheezy/updates/main Translation-es_ES
Ign http://security.debian.org wheezy/updates/main Translation-es
Ign http://security.debian.org wheezy/updates/main Translation-en
Err http://security.debian.org wheezy/updates/main i386 Packages
  404  Not Found [IP: 2a04:4e42:9::204 80]
Ign https://deb.nodesource.com wheezy/main Translation-es_ES
Ign https://deb.nodesource.com wheezy/main Translation-es
Ign https://deb.nodesource.com wheezy/main Translation-en
W: Imposible obtener http://ftp.debian.org/debian/dists/wheezy/main/binary-i386/Packages  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]

W: Imposible obtener http://security.debian.org/dists/wheezy/updates/main/binary-i386/Packages  404  Not Found [IP: 2a04:4e42:9::204 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
debian apt
  • 1 个回答
  • 1796 Views
Martin Hope
crossmax
Asked: 2018-12-13 04:59:06 +0800 CST

Debian 和我的新 AMD Ryzen 2700U (Vega 10) 不友好

  • 3

在我尝试安装 Debian Stretch 之前,我对配备 AMD Ryzen 5 2700U 和 Vega 10 显卡的新笔记本电脑感到满意。

我读了很多关于新锐龙和旧内核的问题。我在 AMD 网站上找不到官方驱动程序,我尝试安装其他一些 linux 版本,但结果都是一样的:不是硬件图形加速。还尝试安装 backports 存储库并将内核更新到 4.18 而不是稳定版本的 4.9。1FPS 说我图形基准(Phoronix 测试套件)。

我也尝试安装 amd-graphics 包,但我不知道哪个更好或值得推荐:firmware-amd-graphics或者xserver-xorg-video-amdgpu任何其他甚至我都不知道存在的东西。

有什么建议运行 Debian(或其他更适合 AMD 的发行版)并获得 Vega 10 的好处吗?

debian xorg
  • 2 个回答
  • 4602 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