pscp | Bash script utility for running secure copy | Architecture library
kandi X-RAY | pscp Summary
kandi X-RAY | pscp Summary
Bash script utility for running secure copy of a file in chunks in parallel
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pscp
pscp Key Features
pscp Examples and Code Snippets
Community Discussions
Trending Discussions on pscp
QUESTION
I have written a simple Java Swing application (It shows one image.jpg and a 2 buttons in the JFrame
). I have a Linux system that I want this Java Swing application to run on start.
I connected to my Linux device with SSH using Putty. I checked and Java is not installed.
I will install Java using RPM but when I typed uname -m
it prompted armv7l
. I checked and it is a 32 bit device. But also it is an ARM. Which RPM version of Java should I use?
I have searched and found that there is a way that creates Linux service from Java application. But that doesn't show any GUI.
I found that X and $DISPLAY have to be used to show GUI on Linux.
But I don't know what steps I should follow.
Could you point me to the right direction?
Edit: My linux system has a screen connected to it but not a keyboard. I installed Java for a 32-bit ARM by transferring Java JDK with SSH and pscp
. I can now execute Java Console Applications. I checked and there is X.org server on my Linux system. When I typed ps -A
, I saw that Xorg is running. Should I kill the current Xorg? How can I make the X server show my Java Swing GUI?
ANSWER
Answered 2021-Jun-05 at 10:25Here you can find arm version of Java : https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html This Java 8 JDK, but you can also download the JRE.
You can install from the .rpm or just uncompress the tar.gz archive.
Concerning the graphical interface, you must install a X server, x.org is the most common one. Be aware that an X server is just a server that runs over a terminal on a screen, but it doesn't do so much alone. You will not have a window with a taskbar and all. But if I understand your requirements, it looks like it's what you are looking for. If you need more, you may want to install a window manager like XFCE.
As soon as you have installed x.org you should be able to run any graphical application. A X client needs the DISPLAY environment variable to know the server, by default it's :0
, which is actually a short for 127.0.0.1:0
.
A quick check is to install xterm and try to run it.
Because x.org run over a terminal (you will have to run startx
command), you will just get a black screen when it will work the first time (except if you added a default app or a window manager). To be able to run an application by hand, you have to switch terminal.
On linux you can have multiple terminal, to switch between them you can do ctrl-alt-F*
(the function keys on top of the keyboard, I hope you don't have a mac keyboard). On many system, the first terminal is on F1, but sometimes the x server is run on F3.
Then a DISPLAY=:0 xterm
must show a terminal on inside the x server.
You can also run the application from ssh, the point is to precise the display using the env var.
To install the X server, I suggest you to look the specific tutorial for your hardware (raspberry, beaglebone..). If you have an exotic hardware, try to follow any tutorial, but most of the time a simple apt install xorg
is enough, but it's driver-less.
Good luck.
Edit:
I forgot. If you don't have a screen connected on your device, installing an X server onto the linux board is useless, you can run an X server on your computer and run X application through SSH ssh -X toto@ip
.
But I guess you have a connected screen on your linux board.
Edit 2: If you don't have a keyboard connected but you have a running x.org, you must be able to run xcalc, xterm ect from SSH by setting DISPLAY=:0 env var.
QUESTION
I want to stream to youtube and twitter in 1 ffmpeg process
i red this https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
I do this command
...ANSWER
Answered 2021-Apr-04 at 04:24You'll need to escape the quotes: select=\'v:0,a\'
and select=\'v:0,a\'
QUESTION
I am trying to iterate to various different Linux servers and scp the .cer files to a windows computer. I need to create a folder based on the var that is returned and then scp the file to that location. There seems to be something wrong with the For /F loop where it is creating each folder but it is only doing the scp copy to the first assignment of the variable. i.e all files go to the first folder created. Do I need to clear the variable each time - I am new to batch scripting. Thanks for your help.
...ANSWER
Answered 2021-Jan-21 at 11:45You need to understand Delayed Expansion Hence, invoke Delayedexpansion and then use !var! in place of %var%; although on second glance, since %%F is assigned to var, you can replace %var% with %%F in this case.
QUESTION
I have a Powershell script to copy .mkv and .mp4 files from Downloads to my Plex server. The script works fine on its own.
I schedule it to run every 30 minutes using Schtasks and it runs fine. Except a PS window appears on each run.
This thread https://stackoverflow.com/a/1802836/4934442 indicates that going to Task Scheduler and setting the option to "Run whether user is logged on or not" will prevent the window from showing.
When I set this option, the Copy-Item in my script fails to execute. It won't copy to my Plex network share and it won't copy to a local folder. (The Remove-Item does execute). I have worked around this issue by using "pscp" to my Plex server, but I would like to find a way for Copy-Item to function for future scripts running in the background.
Note: one comment in the reference thread mentioned a similar problem
The script:
...ANSWER
Answered 2020-Nov-19 at 21:36If the question is really "how do I execute a PowerShell script interactively but prevent its console window from appearing?", then you can use a workaround that involves a WSH script. Here's a short WSH script that can do this:
QUESTION
I have a very big file that has to be transferred to a remote server.
On that remote server there is a job activating each 5 min that, once sees a file name starting with the right prefix, processes it.
What happens if the job "wakes up" in the middle of transfer? In that case it would process a corrupted file.
Do pscp create a .temp file and renames it accordingly to account for that? Or do I have to handle this manually?
...ANSWER
Answered 2020-Oct-01 at 14:41No pscp
does not transfer the files via a temporary file.
You would have to use another SFTP client – If you use pscp
as SFTP client. The pscp
defaults to SFTP, but it falls back to SCP, if SFTP is not available. If you need to use SCP (what is rare), you cannot do this, as SCP protocol does not support file rename.
Either an SFTP client that at least supports file rename – Upload explicitly to a temporary file name and rename afterwards. For that you can use psftp
from PuTTY package, with its put
and mv
commands:
QUESTION
I'm trying to copy a file from a server, and since I'm using PuTTY I've read that using pscp is best. I've added the directory to pscp.exe to my path (C:\ProgramFiles\PuTTY), but when I try to use it I receive this:
-bash: pscp: command not found
What am I doing wrong here? Thanks!
Edit: I also used pscp in the Windows command prompt, it gives me the exact same error
...ANSWER
Answered 2020-Sep-17 at 20:05This video ended up showing me the solution:
https://www.youtube.com/watch?v=w1Tqr7Wk5aU&ab_channel=TonyTeachesTech
I was writing pscp
, when I should've put pscp -P 22
QUESTION
I'm calling pscp from Java using the following code:
...ANSWER
Answered 2020-Sep-07 at 05:28It seems like there's some limitation when you use Java + PSCP. I solved this problem by uploading the file to a default directory. After that I make a connection via putty's command-line and transfer the file to the required destination. I'm placing my answer over here.
QUESTION
My file have below data
...ANSWER
Answered 2020-Jul-17 at 21:07Try:
QUESTION
I used codes in below link with my batch script. But it is asking for password. When I provided pw with password it is not working. First Time it is aking for yes or no when I try in command prompt. In second try it is not asking like that. So I need batch script which need to load local file to WINSCP with password. Also need to answer y.
https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter5.html
Sample code I used in batch script:
...ANSWER
Answered 2020-Jul-14 at 17:47pscp
has some specific parameters. -pw
is the one you are looking for.
QUESTION
I want to copy some file from a remote Linux system to my Windows PC using pscp
(from PuTTY). I wrote a small script that should copy all .png
files in a directory on my server:
ANSWER
Answered 2020-May-28 at 14:25-unsafe
won't help with this.
The problem is that your file names contain colons. Colons are not allowed in Windows file names.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pscp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page