You are not logged in.

#1 2020-08-27 12:52:50

schwim
Member
From: Western NC, US
Registered: 2015-09-29
Posts: 326
Website

Accessble scripting/programming language for this potential app?

Hello folks!

I move between devices a bit and I use SSHFS to mount clients' remote filesystems so I can work on them instead of utilizing FTP.  I have always created a simple bash script to handle this, then called it via OB's menu, one script to mount, one to unmount. 

Instead of building menus, I'd like to handle this in as simple an app as possible so I can move it across devices.  I'd like to be able to add an entry (site name, ssh URL and user), and since I install the keys, I don't need to bother with the password.  Once the client's have been added, I'd like to be able to select one and either mount or unmount the file system.

In the past, we had played with some simple scripts in the forum but it's been so long, I don't know what it was that we were writing in(EDIT: Zenity I think after googling!) and I don't know what the language's limitations were.  I'd like a non-compiled scripting language, if possible to keep it easy to work with/modify but if there's something more complex that could be easily worked with as a neophyte, I'd be interested in that as well.

Any thoughts/help would be greatly appreciated.  Thanks for your time!

Last edited by schwim (2020-08-27 13:02:32)


Schw.im! A social site with an identity crisis.

Offline

#2 2021-05-07 23:06:28

FirstChild
New Member
Registered: 2021-05-07
Posts: 1

Re: Accessble scripting/programming language for this potential app?

I have struggled a lot with the same functions trying to build a database for my site. Do you guys know any alternative coding packages that I could use??

Offline

#3 2021-05-08 09:47:48

twoion
一期一会
Registered: 2015-08-10
Posts: 3,316

Re: Accessble scripting/programming language for this potential app?

FirstChild wrote:

I have struggled a lot with the same functions trying to build a database for my site. Do you guys know any alternative coding packages that I could use??

For defining system configuration like this, you could use a configuration management tool like SaltStack or Ansible to define the "mount" actions either in a statefile/playbook or make it modify configfiles as desired, and then invoke the tool to make it establish any particular system state.

Using such premade modules may be a more stable options, because when you script the behaviour using an imperative language like Bash instead, you have to do lots of error checking and exit code handling, which the modules of these tools already implement for you.

Offline

Board footer

Powered by FluxBB