24小时热门版块排行榜    

Znn3bq.jpeg
北京石油化工学院2026年研究生招生接收调剂公告
查看: 536  |  回复: 6
当前主题已经存档。

TIGERYZZ

金虫 (小有名气)

[交流] 【求助】请教torque问题

各位,我们集群使用torque管理,然后计算结果要在计算完毕后输出e,o文件。
想请问能否采用qstat或者别的命令,随时查看到正在运行的任务的屏幕输出,以便及时调整,谢谢。
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fengya0785

银虫 (小有名气)

★ ★
TIGERYZZ(金币+1,VIP+0):thanks~~ 7-20 21:53
mingdong(金币+1,VIP+0):感谢交流! 8-2 08:34
torque好像是没有这功能,但你可以在提交时重定向输出到文件里,就可以看到屏幕输出了。
E
2楼2009-07-20 15:04:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ma_chao

新虫 (初入文坛)

★ ★
mingdong(金币+1,VIP+0):感谢交流! 8-2 08:34
TIGERYZZ(金币+1,VIP+0): 8-2 10:53
重定向到文件,然后可以用watch + cat 来自动重复看

可以用,但不确定对资源的损耗

呵呵,fengya0785  
3楼2009-08-02 03:32:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

solocheng

荣誉版主 (文坛精英)

黑洞洞主

优秀版主

过来学习了,厉害
你来了,我信你不会走;你走了,我当你没来过。
4楼2009-08-02 12:01:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fengya0785

银虫 (小有名气)

引用回帖:
Originally posted by ma_chao at 2009-8-2 03:32:
重定向到文件,然后可以用watch + cat 来自动重复看

可以用,但不确定对资源的损耗

呵呵,fengya0785  

5楼2009-08-03 11:31:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

TIGERYZZ

金虫 (小有名气)

还请教个问题
我能否在作业运行过程中,更改作业的时间呢?
也就是更改提交作业时的walltime呢?
6楼2009-08-05 08:13:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

123qweasd7962

★ ★ ★ ★ ★ ★
wuli8(金币+3,VIP+0):3KS 8-20 13:36
TIGERYZZ(金币+3,VIP+0):这个是perl写的?好专业……好好看看去,谢谢了 8-20 21:00
可以参考使用qpeek

#!/usr/bin/perl

# qpeek:  Peek into a job's output spool files
# Copyright 2001, Ohio Supercomputer Center
#
# Usage:  qpeek [options] JOBID
#
# Options:
#   -c      Show all of the output file ("cat", default)
#   -h      Show only the beginning of the output file ("head"
#   -t      Show only the end of the output file ("tail"
#   -f      Show only the end of the file and keep listening ("tail -f"
#   -#      Show only # lines of output
#   -e      Show the stderr file of the job
#   -o      Show the stdout file of the job
#   -?      Display help

$tool="cat";
$numlines="";
$suffix="OU";
$spool="/var/spool/pbs/spool";
$host="oscbw";

while ( $ARGV[0] =~ /^-.*/ )
  {
    if ( $ARGV[0] eq "-c" )
      {
        $tool="cat";
      }
    elsif ( $ARGV[0] eq "-f" )
      {
        $tool="tail -f";
      }
    elsif ( $ARGV[0] eq "-h" )
      {
        $tool="head";
      }
    elsif ( $ARGV[0] eq "-t" )
      {
        $tool="tail";
      }
    elsif ( $ARGV[0] =~ /^-[0-9]+$/ )
      {
        $numlines=$ARGV[0];
      }
    elsif ( $ARGV[0] eq "-e" )
      {
        $suffix="ER"
      }
    elsif ( $ARGV[0] eq "-o" )
      {
        $suffix="OU"
      }
    elsif ( $ARGV[0] eq "-?" || $ARGV[0] eq "-help" )
      {
        print STDERR < qpeek:  Peek into a job's output spool files

Usage:  qpeek [options] JOBID

Options:
   -c      Show all of the output file ("cat", default)
   -h      Show only the beginning of the output file ("head"
   -t      Show only the end of the output file ("tail"
   -f      Show only the end of the file and keep listening ("tail -f"
   -#      Show only # lines of output
   -e      Show the stderr file of the job
   -o      Show the stdout file of the job (default)
   -?      Display this help message
EOF
        exit;
      }
    else
      {
        print STDERR "qpeek:  Unrecognized option $ARGV[0] ignored\n";
      }
    shift(@ARGV);
  }

$jobid=shift(@ARGV);
$jobid=~s/\.[A-z0-9.]+$//;
die "No jobid given!\n" if ( $jobid eq "" );

$node=&mothersuperior($jobid);
die "Job $jobid is not running!\n" if ( $node eq "" );

exec "rsh $node $tool $numlines $spool/$jobid.$host.$suffix\n";


sub mothersuperior
{
  local($jobid,$node);
  $jobid=$_[0];
  $node="";
  open(QSTAT,"qstat -f $jobid |";
  while ( )
    {
      chop;
      if ( $_ =~ /exec_host/ )
        {
          ($keyword,$node)=split(/=/);
          $node=~s:/[0-9]+[A-z0-9/+]*::;
        }
    }
  $node;
}

[ Last edited by 123qweasd7962 on 2009-8-20 at 11:47 ]
7楼2009-08-20 11:44:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 TIGERYZZ 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 0703化学调剂 348分 +10 唉我超真没招了 2026-04-06 10/500 2026-04-08 00:45 by JourneyLucky
[考研] 264求调剂 +8 麦小叮当 2026-04-07 8/400 2026-04-07 23:33 by JourneyLucky
[考研] 一志愿南科大生物学297分,求调剂推荐 +8 Y-yyusx 2026-04-06 9/450 2026-04-07 19:38 by biomichael
[考研] 一志愿哈工大,初试329,求环境科学与工程调剂! +10 余未辛 2026-04-06 10/500 2026-04-07 15:44 by 上岸快快
[考研] 一志愿北京化工085600 310分求调剂 +20 0856材料与化工3 2026-04-04 22/1100 2026-04-07 15:14 by 上岸快快
[考研] 一志愿上海海洋大学083200食品学硕,求调剂,接受其他专业 +9 what张 2026-04-01 11/550 2026-04-07 09:45 by momo皓
[考研] 生物学调剂 可调剂到生物与医药 +3 李政莹 2026-04-06 3/150 2026-04-06 19:02 by macy2011
[考研] 生物学学硕求调剂:351分一志愿南京师范大学生物学专业 +6 …~、王…~ 2026-04-06 7/350 2026-04-06 18:54 by macy2011
[考研] 求调剂 +5 wos666 2026-04-03 5/250 2026-04-06 10:13 by 蓝云思雨
[考研] 求调剂 +7 张.1 2026-04-05 7/350 2026-04-05 20:40 by 啵啵啵0119
[考研] 348求调剂 +6 wukira 2026-04-04 6/300 2026-04-05 18:11 by 猪会飞
[考研] 358求调剂 +7 秋gk 2026-04-04 7/350 2026-04-05 13:29 by huangmoli
[考研] 353求调剂 +10 MayUxw1 2026-04-03 10/500 2026-04-05 09:23 by 无际的草原
[考研] 材料383求调剂 +5 郭阳阳阳成 2026-04-04 5/250 2026-04-04 19:06 by dongzh2009
[考研] 一志愿中国石油大学化学工程323分求调剂 +4 化工专硕323分 2026-04-03 6/300 2026-04-03 22:12 by dongzh2009
[考研] 兽医调剂 +3 wh119216 2026-04-02 3/150 2026-04-03 19:34 by zrongyan
[考研] 285求调剂 +8 AZMK 2026-04-02 11/550 2026-04-02 20:16 by yulian1987
[考研] 08工科求调剂290分 +5 1314捧花 2026-04-02 8/400 2026-04-02 13:16 by 乔哒哒哒
[考研] 379求调剂 +3 ?苦瓜不苦 2026-04-01 3/150 2026-04-01 20:09 by 暮云清寒
[考研] 286求调剂 +5 Sa67890. 2026-04-01 7/350 2026-04-01 19:50 by 6781022
信息提示
请填处理意见