无法使用 qsub 获取 stderror

我正在尝试将 public void OnChangeUpload(UploadChangeEventArgs args) { foreach (var file in args.Files) { var path = Path.GetFullPath("wwwroot\\Images\\") + file.FileInfo.Name; FileStream filestream = new FileStream(path,FileMode.Create,Fileaccess.Write); file.Stream.WriteTo(filestream); filestream.Close(); file.Stream.Close(); pathUrl = path; } } 命令输出重定向到某个日志文件。

命令:-

public int solution(int[] A) { Arrays.sort(A); for(int i = 0; i < A.length; i = i+2){ if(i == A.length-1) return A[i]; if (A[i]!=A[i+1]) return A[i]; } return 0; }

输出:-

 select *,(select(case when concat (ptra.end_date::date,' ',ptra.project_end_time::time )::timestamp without time zone > now() at time zone 'utc'  then 'active'
                when concat (ptra.end_date::date,ptra.project_end_time::time )::timestamp without time zone = now()at time zone 'utc'  then  'Due'
                when concat (ptra.end_date::date,ptra.project_end_time::time )::timestamp without time zone < now()at time zone 'utc'  then 'Over Due'
               
                            end) as status
            
                    from public."VOfficeApp_projects" ptra
                    where  ptra.project_id = vp.project_id),update public."VOfficeApp_projects"  ptra set
    status = 'OverDue'
    where ptra.project_id =vp.project_id;
                 

from public."VOfficeApp_projects" vp
where vp.project_id = ip_project_id
and vp.created_by = ip_created_by
order by vp.project_id desc
    
    

基本上,我运行此命令的文件夹中不存在名称为 qsub 的目录。我期待在屏幕上显示 stderr,即

/home/tools/bin/qsub -app affinity -q test_32G_1H -I -R 'rusage[tmp=500,mem=1200]' ls testdir -o > hello1

当我尝试在不使用 `qsub 的情况下运行相同的命令时,它会在输出屏幕上显示 stderr:-

命令:-

<<Waiting for dispatch ...>> <<Starting on k-test-10-031>>

输出:-

testdir

为什么我无法使用 ls: cannot access testlog: No such file or directory on terminal. 在输出终端上查看 stderr ?如果我在这里遗漏了什么,请告诉我。谢谢。

pokkee 回答:无法使用 qsub 获取 stderror

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2190.html

大家都在问