Python Forum
Re-write BASH script to Python script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re-write BASH script to Python script
#5
(Apr-30-2021, 02:12 PM)metulburr Wrote: Check out the subprocess module as you are pretty much going to be using that to run those commands
Sure , I will try use subprocess module.
How do you suggest to implement those lines ?

wget -P $INSTALL https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-$JIRAVERSION-x64.bin
chmod a+x $INSTALL/atlassian-jira-software-$JIRAVERSION-x64.bin
$INSTALL/atlassian-jira-software-$JIRAVERSION-x64.bin -q -varfile $DIR/response.varfile
Reply


Messages In This Thread
Re-write BASH script to Python script - by popi75 - Apr-30-2021, 02:04 PM
RE: Re-write BASH script to Python script - by popi75 - Apr-30-2021, 02:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Autonomous Python Script Leyo 6 2,049 Apr-01-2022, 09:37 AM
Last Post: Axel_Erfurt
  My script returns no values Shay3534 7 3,452 Dec-04-2020, 09:47 PM
Last Post: Shay3534
  Create process to control python script kobibi11 5 2,722 Jun-07-2020, 08:19 AM
Last Post: kobibi11
  How to call bash on Python and put the result to the variable? meknowsnothing 4 2,791 May-30-2020, 04:48 AM
Last Post: ndc85430
  Opening files in same directory as script Emekadavid 3 2,610 May-28-2020, 06:50 PM
Last Post: Emekadavid
  Error in Python script garvind25 10 6,095 May-25-2020, 08:50 PM
Last Post: GOTO10
  An interesting Role-Play-Game battle script NitinL 4 3,502 Apr-02-2020, 03:51 AM
Last Post: NitinL
  Please help with this simple tic tac toe script ErtYwek 2 1,954 Mar-06-2020, 06:42 PM
Last Post: ndc85430
  python script for gfx hat (LCD for raspberry) domoticity 12 6,510 Jul-05-2019, 12:02 PM
Last Post: noisefloor
  Fixing arrays output in Python WLST script pkbash 2 4,085 Feb-28-2019, 06:20 PM
Last Post: pkbash

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020