/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondTools/SiStrip/scripts/manipulate_condDb.pl
25 строк
632 B
Giulio Eulisse
Snapshot of CMSSW_6_2_0_pre8.
26 июн 2013, 18:12
26 июн 2013, 18:12
214ab73
Код
Авторство
О чём код?
\#! /usr/bin/perl use Getopt::Long; my ($myfile); GetOptions( "myfile:s" => \$myfile, "user:s" => \$user, "password:s" => \$password, "db:s" => \$db, ); if(!$myfile or !$user or !$password or !$db){ die "perl update_tag.pl -myfile list_tag.txt -user CMS_COND_STRIP -db cms_orcoff_int2r -password xxxxxxxxxxx\n"; } unless(-e $myfile){die "Il file specificato doesn't exit\n"; } open (TAG,$myfile); while ($item_tag = <TAG>){ chomp($item_tag); $item_tag_mod=$item_tag."_mc"; @pass=`echo "update metadata set name='$item_tag\_mc' where name='$item_tag';" | sqlplus $user\@$db/$password`; print @pass; } close TAG;