Auto connection profile

Post Reply
thesamu
Posts: 3
Joined: Wed Dec 27, 2017 5:05 pm

Auto connection profile

Post by thesamu » Wed Dec 27, 2017 5:18 pm

Hi,
Im working to create an automatic access through crontab and this is my string:

Code: Select all

01 10 * * * export DISPLAY=10 && /usr/games/mudlet
How can i launch from crontab a specific profile?
o.s. ubuntu (debian)

User avatar
Vadi
Posts: 4703
Joined: Sat Mar 14, 2009 3:13 pm

Re: Auto connection profile

Post by Vadi » Wed Dec 27, 2017 5:57 pm

We don't have any command-line arguments right now but you can enable 'autoconnect' on a profile to have it load automatically, would that work?

The setting is also stored as a file in the profile directory, I think it is called 'autoconnect'.

thesamu
Posts: 3
Joined: Wed Dec 27, 2017 5:05 pm

Re: Auto connection profile

Post by thesamu » Wed Dec 27, 2017 6:19 pm

Hi Vadi,
Thanks for the reply
currently I use "auto connect" but I have different server profiles that I would like to start from crontab.
auto-connect limits me to a single profile

User avatar
Vadi
Posts: 4703
Joined: Sat Mar 14, 2009 3:13 pm

Re: Auto connection profile

Post by Vadi » Thu Dec 28, 2017 5:07 am

You can tick multiple profiles to auto-load

User avatar
SlySven
Posts: 919
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Auto connection profile

Post by SlySven » Wed Jan 10, 2018 12:21 am

The auto-connect file is (IIRC) just a very short file that contains a Qt variable value - if you grope (the manual user equivalent to the command line grep command 8-P ? ) around in the ~/.config/mudlet/profiles/<ProfileName> directory for a file with that name for a profile with the control enabled you can put together a shell script that puts a copy of the file with that value in it into any profiles you want to automatically load when you start Mudlet (and delete the file from any profiles that you do not want to start like this).

A command line option to load one or more defined profiles (and one to stop auto-loading of others) are an item on my ToDo list but they are not anywhere near the top at this time!

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests