Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 08:39:07

0001 import argparse
0002 
0003 from pandaserver.userinterface import Client
0004 
0005 # parse option
0006 parser = argparse.ArgumentParser()
0007 parser.add_argument(
0008     "--panda_id",
0009     action="store",
0010     dest="panda_id",
0011     type=int,
0012     required=True,
0013     help="PandaID of the job",
0014 )
0015 parser.add_argument(
0016     "--com_str",
0017     action="store",
0018     dest="com",
0019     required=True,
0020     help="The command string passed to the pilot. max 250 chars",
0021 )
0022 
0023 options = parser.parse_args()
0024 
0025 status, output = Client.send_command_to_job(options.panda_id, options.com)
0026 print(f"Status: {status}. Output: {output}")