Unanswered Questions
39,290 questions with no upvoted or accepted answers
0
votes
0
answers
9
views
Access and Change settings on a TP Link Modem using curl or similar
I can't seem to find any working references or examples which would allow me to make changes to the settings in my Archer A23 WiFi router using any form of script. I've spent some time trying to get ...
0
votes
1
answer
12
views
How Can I Reduce Delay When Sending File Contents to Kafka Producer Using Script?
I want to write a bash script to constantly add new files to a folder and use cat to send the file contents to a Kafka producer with:
cat $FILEPATH |$KAFKA_HOME/bin/kafka-console-producer.sh --...
1
vote
0
answers
17
views
Redirecting python script's stdin to fifo results in RuntimeError: input(): lost sys.stdin
I have this python script that's meant to function as a server which reads commands from stdin which is redirected to a fifo:
test.py:
while True:
try:
line = input()
except EOFError:
...
0
votes
1
answer
42
views
Convert human readable time to epoch inline with jq for time comparison
I am writing a bash script to compare VM creation date to an epoch time gathered in a previous step to see what VMs were recreated before a certain date. These are bosh vms which gives human readable ...
0
votes
0
answers
17
views
How to use tmux display-message -p on login without entering copy mode?
When I use display-message -p in my .bashrc, the messages it creates forces tmux to enter copy mode.
How to send a message to stdout when tmux starts, without using tmux send keys, and without ...
0
votes
0
answers
23
views
Bulk add both modified or deleted files separately to index in git
I've normally used git add . which is sufficient most of the time.
But sometime I would like to separately commit deleted or both modified files after manual conflict resolution.
Though git add $file ...
-1
votes
1
answer
43
views
How do make a custom command to be executed directly from a folder using bash
I want to create a custom command that executes a bash script when a use types it in the terminal. So for example when they type in project setup it executes the setup bash script and then they can ...
0
votes
2
answers
37
views
How Azure DevOps Pipeline condition evaluates parameters?
Given the following Azure DevOps pipeline template:
parameters:
- name: AUTH_TYPE
type: string
steps:
- task: Bash@3
displayName: Parameter print
inputs:
targetType: inline
...
0
votes
1
answer
19
views
Jenkins withcredentials
I have a script which contains git clone, however I saved the credentials using jenkins UI under jenkins credentials so whenever I check out normally I use withcredential, so how can I run the script ...
1
vote
0
answers
25
views
How could I execute arbitrary code from an appShell command button (instead of showing a view)?
I have an appShell like this:
<?xml version="1.0" encoding="UTF-8" ?>
.......
<TabBar
x:Name="MyTabBar"
Route="Home"
&...
0
votes
0
answers
44
views
BeautifulSoup works when running code from the python command line, but not when running a python script from a shell script
I am interested in extracting data added to a database each day using a cronjob. The cronjob is supposed to run at hourly increments to extract the data by executing a shell script that then runs a ...
0
votes
1
answer
24
views
Snippet to echo a selected variable
I have in my bash code:
time=$(echo $timestamps | xargs)
I would like to have after a snippet is done:
time=$(echo $timestamps | xargs)
echo "[var time] = $time"
I tried to put my own ...
-1
votes
0
answers
27
views
source $HOME/.bash_profile does not save the Output after reboot
I have created a simple Shell script using the below commands.
# Setting the JAVA_HOME PATH in .bash_profile. NOTE: - We need to run this only if we are downloading the Java and running it manually. ...
-1
votes
1
answer
37
views
Any way to run a script on Linux VM connected via SSH from a python program
I am connecting to linux machine via below code
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(hostname, port, username=username, password=...
0
votes
1
answer
60
views
Gnu-Parallelization within a shell script
I am using GNU parallel to run 3 scripts simultaneously. This is my current shell script.
#!/bin/bash
#SBATCH --array=0-0
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=3
#SBATCH --cpus-per-task=1
#...