shell内发信失败,teraterm发信正常

accomp 2015-10-27 04:21:26
如下发信代码:
mailx -s "SUBJECT" -r "mailFrom@XXX.com" "mailTo@XXX.com" < "/home/mail.txt"

如果用teraterm直接发信,能正常发出信。
如果写在csh(#! /bin/csh)内,则报错
错误信息:temporary mail file: No such file or directory
应该是 < 识别出问题。
请教具体的问题和解决策

系统信息:
$ cat /proc/version
Linux version 2.6.32-358.el6.x86_64 (mockbuild@x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013
...全文
180 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
accomp 2015-10-29
  • 打赏
  • 举报
回复
直接发信正常是因为 默认调用的是bash ,但不知道如何在csh内 用 bash执行这句话
Changes in Tera Term version 4.93 Added 48x48 icon to keycode.exe. Bug Fixes in Tera Term version 4.93 After Kanji(receive) is set to EUC and UTF-8 string is displayed, new Kanji(Chinese character) may be properly shown when Kanji(receive) is set to UTF-8. When Kanji(receive) is set to UTF-8, ISO-2022-JP Kanji cannot be properly displayed with Japanese language setting. When DeferredLogWriteMode=on is enabled and a log file is closed soon after opening the file, Tera Term sometimes halts with dead-lock. When Log dialog is closed, the memory leak of Tera Term core(ttermpro.exe) was happening. Windows 7 and Vista: When special operation is done on General setup dialog, an application fault may occur. When the real time mode is off while using broadcast command, invalid character would be added to the end of string. MACRO: When closesbox command is executed, the memory leak of Macro core(ttpmacro.exe) was happening. MACRO: The gethostname, gettitle, getmodemstatus, loginfo and logopen commands in rear cases would have issues. Related Product Upgrades Upgraded TTSSH to 2.79. Upgraded CygTerm+ to 1.07_29. Upgraded TTProxy to 1.0.0.24. Upgraded TeraTerm Menu to 1.14. Upgraded TTX KanjiMenu Plug-in to 0.1.7. Upgraded TTXRecurringCommand Plug-in to 1.05. Upgraded Oniguruma to 6.1.2. Changes in TTSSH version 2.79 When an Order(CipherOrder, KexOrder, HostKeyOrder, MacOrder, CompOrder) is read from the teraterm.ini file, memory corruption could occur. Tera Term(TTSSH) may hang up while a file is being received via SCP. Upgraded OpenSSL to 1.0.2j. Changes in Cygterm+ 1.07_29 Changed the icon image. Changes in TTProxy version 1.0.0.24 When an authentication is used in HTTP proxy, Tera Term(TTProxy) would crash. When an authentication is used on HTTP proxy, the authentication data would not be encoded with base64 protocol. The HTTP proxy connection was changed from HTTP/1.0 to HTTP/1.1. Changes in TeraTerm Menu version 1.14 Updated the TeraTerm icon (teraterm.ico). Changes

23,216

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧