Why does my kali save text files as python file? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Im pretty new in Kali and confused with the following issue:
Every time i create a text file, it is saved as a python file
If i want to open it, the python launcher for Windows tries to open the file, but it never happen.
Nevertheless, it is possible to open it with an text editor.
Why does it happen?
Where can i find the settings, so .txt documents are always loaded with gedit?
(I use an oracle vm to launch kali on my windows system)

rename your file with double quote "file.txt"

Related

Share script with non coders [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I wrote some script with tkinter as a GUI and pyinstaller to convert it to an exe.
However gmail doesn’t allow me to share the file
if I share the file with google drive then windows security gets triggered
What’s a good safe and easy way for people who don’t know how to install python to use the code I write in python.
Thank you
You could use Discord. I believe you can upload an exe to Discord.

How to make a Python code run automatically everyday [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have written the following code to open a particular site.
import webbrowser
webbrowser.open('https://stackoverflow.com/')
I want to modify the code to ping the website twice a day without being using an always running code in the background (maybe with an infinite loop).
I'm using a Windows 10 system. I don't have root access.
I have done a little research and was unable to find anything satisfactory.
Thanks in advance.
You could use github actions - there is a guide here
LINUX:
use Crontab or place your script in /etc/rc.local.
WINDOWS:
Use Task scheduler or use AT command similar to crontab in linux.
on Windows you can use Task Scheduler

How to add python to system path? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I installed python 3.7 and would like to add it to the system paths, so that a am able to use the python comand everywere on my system.
I added the path of the folder to the system path but I still canntot use python comands ouside the directory.
I added this to the system variables path: C:\Python37
A few things.
First, modern Python typically wants to install into C:\Program Files\Python37--are you certain about C:\Python37 being the path?
Second, did you add it to the system path using the dialog? If you did, did you restart your command line session? The command line won't pick up the new path until you restart it.
Finally, you'll also want to add the Scripts directory to the path too (C:\Python37\Scripts).
– John Szakmeister

How to create new file/script by Linux in OpenWrt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Hi there I have a router with OpenWrt and to enable a Startupscript, I first have to create the script.
I needt to create it in /etc/init.d/
The script is called swapon. So when I enter /etc/init.d/swapon I enter VI mode and type the script
Then I exit editing mode and type :w to save
Then it says 'error no such file or directory'
So how to create this script and let it save?
Please help.
You need to be root to edit things in /etc/. Try the following:
Make sure sudo is installed
Edit the file using sudo vi /etc/init.d/swapon
If it still complains, create the file first using sudo touch /etc/init.d/swapon
Finally, make sure the directory exists - if not, use sudo mkdir /etc/init.d

what does './' before a python filename do? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm following a Flask tutorial, in which I created a virtual environment to run the application.
To run the file, it asks me to run this command:
./run.py
as opposed to:
python run.py
What does the ./ do exactly and why is it necessary?
It is used because the current directory is not in $PATH. And the reason why it is not in the current directory on that list is security.
So in simple terms you can say that the ./ says 'search in the current directory for my script rather than searching at all the directories specified in $PATH'.

Categories

Resources