tftp传文件
来源:互联网 发布:淘宝店铺招牌是哪个 编辑:程序博客网 时间:2024/06/12 20:22
用tftp, udpsvd -vE 0 69 tftpd -c /server & 开启tftpd服务器,
然后在318上执行 tftp -pl file ipaddress
tftp -gl main 1.1.1.100即可。
udhcpd -f /app/cfg/udhcpd.conf
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char **argv)
{
if(argc!=2){
printf("error par number\n");
return 0;
}
int fd = open (argv[1], O_RDWR);
if(fd==-1){
printf("open %s error\n",argv[1]);
return 0;
}
fsync (fd);
close (fd);
printf("ok\n");
return 0;
}
然后在318上执行 tftp -pl file ipaddress
tftp -gl main 1.1.1.100即可。
udhcpd -f /app/cfg/udhcpd.conf
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char **argv)
{
if(argc!=2){
printf("error par number\n");
return 0;
}
int fd = open (argv[1], O_RDWR);
if(fd==-1){
printf("open %s error\n",argv[1]);
return 0;
}
fsync (fd);
close (fd);
printf("ok\n");
return 0;
}
0 0
- tftp传文件
- ubuntu搭建tftp传文件
- TFTP服务器接收文件
- tftp 传输文件
- tftp文件下载
- Linux TFTP 文件配置
- 实现tftp文件互传的最小局域网设置
- linux 通过 tftp下载文件
- H3C交换tftp上传下载文件
- TFTP:简单文件传送协议
- TFTP简单文件传送协议
- linux中tftp上传下载文件
- python使用TFTP下载文件
- Tftp
- tftp
- tftp
- tftp
- tftp
- 每个程序员都会的 35 个 jQuery 小技巧
- 定制化linux欢迎界面
- NEMA-0183协议中$GPRMC的解析
- 为什么Rest的出现影响今天的互联网,以及Web的发展历程
- 新线程网络请求,回调方法在主线程中进行
- tftp传文件
- SSH——浅谈spring中的事务(二)
- 【d3.js教程14】可拖动的地图详解
- git代码提交
- studio错误
- Sqoop实现MySql/Oracle与Hdfs/Hbase互导数据
- c++位运算
- NSScanner类的基本用法
- Duilib 入门