I want to convert some bash scripts into GUI apps using the Ubuntu SDK to create an HTML5 app.
Is this possible?
Are there any tutorials besides the 'Meanings' one that demonstrate this?
I want to convert some bash scripts into GUI apps using the Ubuntu SDK to create an HTML5 app.
Is this possible?
Are there any tutorials besides the 'Meanings' one that demonstrate this?
What is the web server serving the apps? You can always put shell scripts in the /cgi-bin/ folder and invoke the URL.
sorry i'm so late but that's it
this is how to make an os command on php
<?php
shell_exec("os command"); ?>
<?php
// lets try to download file
shell_exec("wget filename.zip"); ?>
//Usage : let's make a youtube downloader for
name this index.htm
<html>
<head>
<title>youtube Downloader</title>
</head>
<body>
<form name="form1" action="downloader.php" method="POST">
<div align="center">
<br><br>
<input type="text" name="youtube-id" size="25" value="Enter youtube video id ">
<br><input type="submit" value="download this video as mp4"><br>
</div>
</form>
</body>
</html>
<?php
/** 'Askubuntu'
name this downloader.php
be sure that shell_exec is enabled & you have installed the youtube-dl
installation
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install youtube-dl
youtube-dl -o $videoid $videoid = youtube-dl download -o filename , the video link or video-id*/
$videoid = $_POST['expmonth'];
shell_exec("youtube-dl -o $videoid $videoid");
print '<a href="' . $videoid . '">Download</a>';
?>
you can make it check if the file exist print with if i just wanted to make a fast answer
