All Questions
15 questions with no upvoted or accepted answers
3votes
2answers
2kviews
Script or Program to discover hosts on network
Explanation: I need a script or program to discover devices on my network. I was thinking maybe doing the scan with nmap and I need to display just the name of device, what it is, and also the ip ...
3votes
1answer
624views
Advance autologin via 2 jumphost/passphrase
I need to find a way to autologin on Remote Machine. There are several way in which we can do this but this is little tricky for me. Auto Login to a remote machine and execute command or script and ...
1vote
1answer
706views
Simulating Keystrokes to a Telnet process
On my Linux system I have opened a Telnet session. On the other tab I am running a Python script and giving commands to the Telnet session using mkfifo file redirection. But I am not able to simulate ...
1vote
1answer
676views
Specify which version of python duplicity should use
I've got a backup script that utilizes duplicity to upload to Dropbox. It's erroring out because the dropbox-python-sdk version required, 6.9.0, uses the keyword async which is now reserved in python3....
1vote
1answer
2kviews
Python script: wait until job in tmux session has completed
I am trying to continuously run a python script with random parameters from another python script, where each run is in its own tmux session. A very simplified overview of what I'm trying to do goes ...
1vote
0answers
506views
Hotmail not receiving emails from a script, but works from the server
I have a working mail server running Debian stable, the following elements are working. SPF DKIM rDNS My IP is not listed in any backlist, I used: mxtoolbox.com for all this. My problem: Sending ...
0votes
1answer
706views
Shell scripting, reading a list from tt file, use as variable, use the variable to run python scripts in a foor loop
I am trying to run a shell script where it reads the variables from a txt file, uses that variable in a for loop to run python file. The code reads a txt file where at least there are 100 variable ...
0votes
1answer
856views
Defining linux command in python script and able to run the command from script
I need to write a python script, for example I need to run the command "systemctl is-enabled autofs" and if the output the command is "Failed to get unit file state for autofs.service: ...
0votes
0answers
173views
Can't run python script on startup. Raspberry Pi 4
I am trying to run a python script when my Raspberry pi 4 boots. THis python script works when I run it directly, with no errors. I have edited the crontab file to do this as can be seen below: # ...
0votes
0answers
3kviews
Get environment variable from python script
I have bash script config.sh in which several variables are exported , and I need those variable in my python script. config.sh export VAR="YES" My approach is to source the config.sh from the ...
0votes
0answers
52views
Problem with file ".ssh/rc" and option "ForceCommand". Script python loop infinite!
As the title suggests, I have a python script to run when logging in with ssh. The problem is that in the script there is a "while" loop with "raw_input" inside which must read a keyboard value. If ...
0votes
0answers
40views
Terminal Hangs when running bot
I have a bot installed on my Azure Linux VM running Ubuntu 18.04. I am running the command to start my bot, and it returns an error (see below). The console freezes as well apparently because it ...
0votes
0answers
305views
remote process run through ssh gets killed if UI is closed
I have written a script which essentially does 2 things: Runs a UI for listening to the actual program running on the server remotely run the program on the server All goes well, the UI starts, then ...
0votes
1answer
86views
Can I script recreation of files such their inodes/mtimes increase in filename order? Across subdirectories?
Long story short, I have a buggy Makefile that is missing a few prerequisite definitions and consequently accidentally relies on the "order" of files on disk (checked out from an SVN repo) as given by ...
0votes
1answer
2kviews
permission needed for Python to access USB drive?
I got this Python script that reads media files from USB stick. It used to run fine, today it keeps giving me OS Error: [Errno 13] Permission denied: media/myName/usbName when the script runs the ...