【发布时间】:2013-10-29 12:44:34
【问题描述】:
如何调用 shell 脚本的子程序并传递某些参数给它?像下面这样的?
#!/usr/bin/perl
### need something like this
source file.sh
routine; # <-- this is supposed to be part of file.sh which is called
# from perl script and some parameter are passed to it
【问题讨论】:
-
这可能是一个 XYProblem ...你确定你需要这样做 this 吗?您需要解决的潜在需求是什么?