Chinaunix首页 | 论坛 | 博客
  • 博客访问: 384685
  • 博文数量: 39
  • 博客积分: 1771
  • 博客等级: 上尉
  • 技术积分: 1231
  • 用 户 组: 普通用户
  • 注册时间: 2005-05-01 14:21
文章分类

全部博文(39)

文章存档

2013年(1)

2012年(4)

2011年(16)

2010年(6)

2009年(12)

分类: LINUX

2010-09-06 10:20:36

I want to transfer /var/log/messages to the server via tftp protocol.

Server side(tftp is so silly that I have to create a file with exactly the same name and the proper privilege on server side in advance):
# touch /tftpboot/messages
# chmod a+w /tftpboot/messages       // without granting privilege, tftp client will complain "tftp: server says: Permission denied" while uploading.

Client side:
# cd /var/log/
# tftp -pl messages

Now, I can cat /tftpboot/messages to check the log message on server.
阅读(1616) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~