Python Forum
Problem with bash shell needed for my python project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with bash shell needed for my python project
#4
This seems to give better results
#!/bin/bash
FILTER1="@id @lat @lon name value"

/home/eric/bin/echoargs --csv="$FILTER1"
Output:
~/P/S/2021-01 paillasse/pf/script.sh ['/home/eric/bin/echoargs', '--csv=@id @lat @lon name value']
I used here my awesome 'echoargs' program to check command line arguments:
#!/usr/bin/env python3
# echoargs script
import sys

if __name__ == '__main__':
    print(sys.argv)
Reply


Messages In This Thread
RE: Problem with bash shell needed for my python project - by Gribouillis - Jun-22-2021, 06:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  unix shell in python Skaperen 3 2,621 Mar-29-2019, 12:02 AM
Last Post: snippsat
  BASH ? elico 2 4,492 Oct-27-2016, 12:18 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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