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
1,028 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
699 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,260 points
6,716 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, 2022 in Others by Edureka
• 13,690 points
1,053 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, 2022 in Others by narikkadan
• 63,600 points
741 views
0 votes
1 answer
0 votes
1 answer

How to remove data within a multi-line cell that comes after a few line breaks

find() return the starting position of a ...READ MORE

answered Jan 26, 2023 in Others by narikkadan
• 63,600 points
908 views
0 votes
1 answer

Is there a faster way to delete table rows so my script doesn't take hours to run?

This is for your rowAddressToRemove variable. So instead of ...READ MORE

answered Jan 31, 2023 in Others by narikkadan
• 63,600 points
809 views
0 votes
1 answer

Excel VBA- How to loop through specific sheets in a workbook and format the same ranges in each sheet

Range(...) instructs VBA to always use the ...READ MORE

answered Mar 21, 2023 in Others by Kithuzzz
• 38,000 points
1,759 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,150 points
6,461 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP