#!/bin/bash

后台下载文件脚本

下载文件的地址

url="http://example.com/file.zip"

下载文件保存的路径

path="/home/user/downloads"

下载文件的命名

filename="file.zip"

启动后台下载

nohup wget -c "$url" -O "$path/$filename" > /dev/null 2>&1 &

echo "文件下载已启动!"

帮我写一个在centos系统上后台下载文件的脚本

原文地址: https://www.cveoy.top/t/topic/bi28 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录