How to pass a Bash variable to Python?

前端 未结 4 1099
-上瘾入骨i
-上瘾入骨i 2020-12-06 06:25

Eventually I understand this and it works.

bash script:

#!/bin/bash
#$ -V
#$ -cwd
#$ -o $HOME/sge_jobs_output/$JOB_ID.out -j y
#$ -S /bin/bash
#$ -l          


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 06:41

    Take a look at parsing Python arguments. Your bash code would be fine, just need to edit your Python script to take the argument.

提交回复
热议问题