Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to work on a current logfile, hosted on Server#1, without being ON Server#1.
How can I read the content, to get scripts process on an other machine (Server#2)
I don't want Server#1 to be impacted by my scripts.
Use ssh to get the log file contents, and pipe it to the script running locally:
ssh Server1 cat logfile | path/to/script
scp, netcat, FTP, rsync... you have so many options.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm setting up my computer to use Amazon's credential helper for Docker. There a step in which I should add stuff to ~/.aws/credentials, but I don't even have an idea how to create that .aws file or what it means to have a . right at the beginning.
just use the command mkdir .aws to create the .aws directory.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am using a postgres database for the first time. I am using python 3 in miniconda in Windows 10 and Lubuntu.
I want to start my database server from my python script (on the cron). When it starts, nothing else get executed in my script. Do I need multi-threading or it's something else?
thanks everyone
I tried subprocess.run() instead of os.popen() and it works
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm using gdb to debug a program via a ssh session. After a while, the ssh session closed, and I can find it using ps command after I establish a new one. Is there any way that I can bring it back to foreground? The environment is Linux Redhat
No.
The proper way to do this would be to use a program like screen or tmux to start the gdb session. This way, you can re-connect to your screen/tmux session even if your SSH session dies.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have my code that will run every time udev detects new usb.
My code works fine when I run it as a local user.
But It fails when I use udev.rules file because it runs my script as root.
How can I run ".rules" as a local user?
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want grant user rights to copy a specific file from a remote server via SSH. And I do not want to give him any opportunity to execute something else on a remote server.
I have an access to a remote machine but I'm not an adimistrator, and I want to give another user possibility to copy specific file but nothing else.
Is there any way to sign a script in linux to avoid modification of this script or something similar that could help?
There is a solution to restrict SSH run only specific command:
http://chihungchan.blogspot.com/2008/08/restrict-ssh-to-run-specific-command.html