Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
clearcase command issue
#1
Hi,
I have been using the following command to find all files without a label. But it is not working. I am using python 2.6 in UNIX.

I am passing a label as an argument and using the argument in code. But I see the the code is taking the argument.

lb1 = sys.argv[1] ---- this is the label
os.system("cleartool find . -ver "version(.../bh/1) && ! lbtype(lb1)" -print

After running this, I see it print all files instead.

Please help. I am trying for several days.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Command line argument issue space issue mg24 5 1,280 Oct-26-2022, 11:05 PM
Last Post: Yoriz
  SMTPSenderRefused: (530, b'5.7.0 Must issue a STARTTLS command first rhat398 0 3,284 Jul-13-2021, 06:24 PM
Last Post: rhat398
  Issue with command line arguments artblinked 2 3,068 Feb-22-2019, 03:04 PM
Last Post: artblinked
  Command Prompt Issue benzenegirl 2 2,523 Oct-25-2018, 03:09 PM
Last Post: The_Raven

Forum Jump:

User Panel Messages

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