DX
来源:互联网 发布:剑三丐帮正太捏脸数据 编辑:程序博客网 时间:2024/04/27 19:29
#!/usr/bin/perl -w
use strict;
sub printUsage()
{
printf STDERR "Usage: ./dx.pl config.xml\n";
}
if($#ARGV < 0)
{
&printUsage();
exit 1;
}
#my $cmd = qq(su - collect -c \"/usr/bin/perl /home/collect/datax/dx.pl $ARGV[0]\");
my $username = $ARGV[0];
shift @ARGV;
my $cmd = qq(source /etc/profile
source /etc/bashrc
kinit -kt /opt/horae/$username\.keytab $username
cd /home/collect/datax
./datax_hadoop jar datax.jar $ARGV[0]
);
#system($cmd);
my $res = (system($cmd) >> 8 ? 1 : 0);
#printf STDOUT $res."\n";
use strict;
sub printUsage()
{
printf STDERR "Usage: ./dx.pl config.xml\n";
}
if($#ARGV < 0)
{
&printUsage();
exit 1;
}
#my $cmd = qq(su - collect -c \"/usr/bin/perl /home/collect/datax/dx.pl $ARGV[0]\");
my $username = $ARGV[0];
shift @ARGV;
my $cmd = qq(source /etc/profile
source /etc/bashrc
kinit -kt /opt/horae/$username\.keytab $username
cd /home/collect/datax
./datax_hadoop jar datax.jar $ARGV[0]
);
#system($cmd);
my $res = (system($cmd) >> 8 ? 1 : 0);
#printf STDOUT $res."\n";
exit $res;
===
#!/usr/bin/perl -w
use strict;
sub printUsage()
{
printf STDERR "Usage: ./wget.pl config.xml\n";
}
if($#ARGV < 0)
{
&printUsage();
exit 1;
}
#my $cmd = "su - collect; cd /home/collect/wgetadapter; java -Djava.ext.dirs=lib:$ENV{'JAVA_HOME'}/jre/lib/ext/ -jar wget.jar $ARGV[0]";
my $cmd = qq(su - collect -c \"/usr/bin/perl /home/collect/wgetadapter/wget.pl $ARGV[0]\");
exit (system($cmd) >> 8);
- DX
- DX信息
- DX记录
- HyperSnap-DX
- DX初学
- DX初学
- DX 文档
- DX窗口
- DX初探。。
- DX配置
- DX光照
- DX着色
- dx收费
- dx texture
- DX信息
- dx postprocess
- dx postprocess
- DX 画两条线
- 需求分析的方法
- c#中数组,类型转换,using语句的其他用法
- MFC缺省调用约定
- 实验9
- 邮件服务器兼容——收获点滴
- DX
- VC++ 实现全屏
- spring Remoting 实现分布式
- 一个IT人士的个人经历,给迷失方向的朋友
- 整除 取余
- 《C语言程序设计现代方法》笔记
- 再次感受德国工业的强悍
- 第一章 关系数据库设计
- DS-5 的示例项目