Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Nov 18, 2017 10:14 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Command Line Installers
PostPosted: Fri Jan 25, 2013 9:19 am 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
First, please forgive my ignorance of all things Linux. My experiences with the OS is less than a year old.

I'm using a Debian Squeeze (LAPP turnkey) as a PostgreSQL server. On the same server I have Web App running that reads from the database, so my client's can review data and make reports on their local network. What I'm trying to understand is how I could bundle the WE builds to deliver updates to them as painlessly as possible. There's no UI, so the client will have to do something from the command-line. What I'd like to avoid is making them SFTP in and swap files, change permissions, and run the app from the shell.

Is it possible to create a Linux build that can be called from the shell that downloads, removes, and installs the new files? Should I write this myself as a Console App?

Thanks!

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
Reply with quote  
 Post subject: Re: Command Line Installers
PostPosted: Fri Jan 25, 2013 9:43 am 
Offline
User avatar

Joined: Sun Oct 28, 2012 4:54 am
Posts: 264
Location: Herts, UK
You could have a timer or something in your console application to check a URL for any updates that you publish and then execute a shell script - Off the top of my head

Quote:
wget --no-check-certificate http://downloads.yoursite.com/MyAppsetup.tar
if [ ! -f "MyAppsetup.tar" ]
then
rmdir /usr/lib/myAppfolder 2>/dev/null
echo "Tar file failed to download. Please call us."
exit
fi
tar -xvf MyAppsetup.tar

chmod 755 YourApp

_________________
Real Studio 2012 R2
SysInfo
BackTrack Linux/BackBox Linux/Debian Lenny/Windows 7/Windows 8/OpenWRT/OpenBSD
& Yes it's me in the Avatar


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group