This is probably a fairly rudimentary problem, but I am new to scripting. I’m trying to write a script that I can just click and it will do two things:
open konsole
run an sftp command
Here’s what I have so far:
#! /bin/bash
sftp user@sftp_server
where the user info and server info for the source I want is actually typed in already. What I don’t know is how I make it open konsole and then run that command. Is this possible?
Just make your script executable and double-click on it. It may or may
not open ‘konsole’ vs. ‘xterm’ or something but I doubt you really care
about that particular detail, and if you do that may be manageable as
well but it’s usually more work than it is worth.
Good luck.
dbsoundman wrote:
> This is probably a fairly rudimentary problem, but I am new to
> scripting. I’m trying to write a script that I can just click and it
> will do two things:
> 1) open konsole
> 2) run an sftp command
>
> Here’s what I have so far:
>
> #! /bin/bash
> sftp user@sftp_server
>
> where the user info and server info for the source I want is actually
> typed in already. What I don’t know is how I make it open konsole and
> then run that command. Is this possible?
>
> Thanks,
> Dan
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Thanks, the second script did it. The problem I had is that when I just clicked on it without specifying Konsole in the command, it opened in an openSSH password prompt instead, which then dead-ended (nothing happened after I entered a password). I didn’t realize that was going on until now…