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
317 views
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 4, 2019 in Others by sindhu
241 views
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,240 points
3,123 views
0 votes
2 answers

How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

answered Feb 16 in Others by Edureka
• 9,320 points
65 views
0 votes
1 answer

How to trigger an A/B test VWO via java script

yes firstly define the JS using the ...READ MORE

answered Feb 18 in Others by narikkadan
• 7,860 points
36 views
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,170 points
5,185 views
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 7, 2019 in Others by Frankie
• 9,830 points
702 views
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
747 views
0 votes
0 answers

how to list the contents of a asset into an event

May 29, 2019 in Others by anonymous
175 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP