Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
尝试将stderr的内容打印到文件中,调试ts的调用
Browse files Browse the repository at this point in the history
  • Loading branch information
tulvgengenr committed Mar 24, 2023
1 parent f22a2d4 commit 69b6842
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scow-sync-start
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ if __name__ == '__main__':
args = ArgsParser().get_args_parser().parse_args()
cmd = f'scow-sync -a {args.address} -u {args.user} -s {args.source} -d {args.destination} -m {args.max_depth} -p {args.port} -k {args.sshkey_path}'


unique_id = utils.gen_file_transfer_id(cmd)

os.mkdir(os.path.join('/tmp/scow-sync', str(unique_id)), 0o777)

popen = Popen(cmd, shell=True)
popen = Popen(cmd, shell=True,stderr=open(os.path.join('/tmp/scow-sync', str(unique_id), 'stderr'), 'w'))

sys.exit()

0 comments on commit 69b6842

Please sign in to comment.