How to run commands within fabric pods through a batch script

0 votes
I am trying to write a batch script to run some commands within a fabric pod. Currently am doing it manually by running the commands one by one in cmd.
So to login into the fabric pod am using the command in the batch script:
kubectl exec -it [pod name] --bash -l -c "fabric -u ${fabric_user_name} -p ${fabric_password}"
So with this am able to log into the fabric but then I need to run some commands to get some reports like the job status. But when am writing the command to get job status after the mentioned line in script it's not doing anything. It's just waiting after logging into the fabric in cmd. How can I write the script so that I can run some commands inside the fabric? Please help.
May 30, 2020 in Others by anonymous
• 120 points
Can you share your script?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Others

0 votes
0 answers

How to create a batch file in windows?

What is a batch file and How ...READ MORE

Jul 3, 2019 in Others by sindhu
0 votes
1 answer

How to run two commands in one line in Windows CMD?

Hi@MD, You can use the Logical And operator ...READ MORE

answered Oct 5, 2020 in Others by akhtar
• 38,210 points
0 votes
1 answer
0 votes
1 answer

How to run C# code on Ubuntu

Hey @Abha, you can create and run ...READ MORE

answered Mar 1, 2019 in Others by Anvi
• 14,150 points
0 votes
1 answer

What is a name function in JavaScript & how to define it?

A named function declares a name as ...READ MORE

answered Mar 6, 2019 in Others by Frankie
• 9,810 points
0 votes
1 answer
0 votes
1 answer

How to unistall a file in Linux?

You can uninstall a file using the ...READ MORE

answered Mar 8, 2019 in Others by Nabarupa
0 votes
0 answers

how to list the contents of a asset into an event

May 29, 2019 in Others by anonymous
0 votes
1 answer

How do I start studying Node.JS to create a restful API?

Node.js is an open source server environment ...READ MORE

answered Jun 10, 2019 in Others by ArchanaNagur
• 2,340 points
+1 vote
0 answers

How to split a number with coma betweeen two colunms

Jul 3, 2019 in Others by anonymous