Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 wget 每小时获取一张图像。我有完整的路径,但我无法让它工作。这是代码
DATE="date +%s" TIMESTAMP=`$DATE` cd /path_to/photofolder/ wget http://path_to_image/jpg/image.jpg mv image.jpg image1.jpg FILENAME="$TIMESTAMP.jpg" cp image1.jpg $FILENAME