[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CLI Konsole -p Command query



CORRECTION

On 18/02/14 21:10, Scott Ferguson wrote:
> the x-y:-
> I want to start an ssh screen session in Konsole from a script
> (/etc/rc.local) run on the machine I want to connect to. e.g.:-
> box A boots and runs rc.local that then uses an ssh command to start a
> konsole session, for which there is no previously defined profile, on
> box B that connects to box A.
> 
> This works fine when I'm calling a *previously defined* profile on Box
> B. e.g.:-
> ;the script on box A (/etc/rc.local):-
> ssh scott@vbserver 'export DISPLAY=:0 && konsole --profile dev'
> ;the konsole profile on box A

The previous line should read "the konsole profile on box B"
> (/home/scott/.kde/share/apps/konsole/dev.profile):-
> [Appearance]
> ColorScheme=BlackOnLightYellow
> Font=Oxygen Mono,12,-1,5,50,0,0,0,0,0
> [General]
> Command=ssh -t dev screen -dR
> Directory=
> Icon=network-server
> LocalTabTitleFormat=%D : %n
> MenuIndex=3
> Name=Dev
> Parent=FALLBACK/
> RemoteTabTitleFormat=Dev : %u
> ShowNewAndCloseTabButtons=false
> ShowTerminalSizeHint=false
> StartInCurrentSessionDir=false
> 
> 
> I've tried various CLI options using both the "-p Command=" and "-c
> <command>" without success. box A has the SSH key copied to, and is
> listed in known_hosts on box B.  e.g.:-
> /etc/rc.local (box A):-
> ssh scott@vbserver 'export DISPLAY=:0 && konsole -p Command='ssh
> scott@wheezystripped' -p Icon=network-server --new-tab'
> 
> I've also tried with only the "-p Command=" with and without the
> --new-tab, as well as different orders of Konsole parameters.
> Everything works fine if I don't try the command (i.e. just use
> --new-tab and -p Icon=)
> 
> I really don't want to resort to the -> (use ssh):-
> Test for existing profile
>   If ! Exist create profile
> Use profile (with ssh)
> 
> I already have other stuff called from /etc/rc.local box B to box A
> (kdialog and festival message)
> 
> 
> Kind regards
> 
> 
> 
> 


Reply to: