General :: Use For A Web Interface That Runs Bash Scripts In Bckgrnd?
Jun 7, 2010
I have a set of bash scripts which I need to execute through a web-interface. So that they can be executed remotely, once the web-interface is hosted on a server. Since this is the first time I am trying something like this, I am not sure what language or technology to use for such work. From my knowledge PHP could be a good fit. But not really sure.
View 1 Replies
ADVERTISEMENT
Oct 20, 2010
A bash script that runs a program N times, takes the numbers program produces (each time different) and calculates the average of those numbers.
View 2 Replies
View Related
Dec 28, 2008
I wanna that the pc starts (on/off), the pc arrives to gdm. It waits for an user to log.But but at the boot of this machine, I would like that an user has a script started in the processes (NO X cuz bash script).How can an user runs a script at boot of the PC ? (once only and no one loged)
View 4 Replies
View Related
Jan 26, 2010
I am trying to run a PHP script over and over again. I would love to be able to just write a small bash script that will just do this for me, however I am having trouble writing a for loop that works. Here is what I have now:
When I run this (./bash_import) I get the following errors:
I have also tried just doing the "php wps_product_import.php" on 20 different lines and I get an error saying it can't open the script file and only runs once.
View 9 Replies
View Related
Oct 13, 2010
I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?
View 6 Replies
View Related
May 18, 2009
I want to install a lineage 2 server on a vps... I have bought it and I have receiver connection details with ssh -.- . It's possible to install graphics interface from bash line because I don't know to set up a l2 server from bash line...
View 9 Replies
View Related
Jun 11, 2011
I'm trying to write a small script and there's one part of it that makes me sick:
Code:
ifconfig eth$num down
sleep 6
ifconfig eth$num hw ether $mac
ifconfig eth$num up
The problem is that the ethX interface doesn't go down immediately after the first line is executed. So sometimes the change of MAC is called while ethX is up, no matter how big is the sleep time, which results in an error. Is there a way to make this work right?
View 1 Replies
View Related
Apr 11, 2011
i am using windows 7 in my laptop and linux is installed on virtualBox but my problem is the screen is showing small in virtualbox is there any way to enalarge the screen to show like windows screen? i did before by using VGA setting but it made problem me i was not able to use GUI interface i meant graphics interface
it was just showing me Command Prompt.
View 8 Replies
View Related
Jul 16, 2010
I installed Ubuntu Hardy Heron about six months ago, and it has gradually slowed down, and CPU utilization has crept up to the 50-60% range. The DEV folder contains a large number of similar files - TTY0 through TTYZF or PTYA0 through PTYZF. I suspect that something is not configured right, but, I don't know where to look.
I connect to the internet through a G4 Wireless Transceiver connected to my ethernet port on an IBM Think Center 8187.
View 6 Replies
View Related
Jul 24, 2011
The problem is I need the php program to send member email confirmation which contains a confirm link. Run every min may still make the member wait. So I like to make it to run every 20 or 30 secs.
I don't want to put the code to send email on my sign up page as that's no good.
But I don't want to put a sleep 30 sec on my php script and going on loop. If it failed in the middle then it may wait abit to start.
What can be done to achieve my goal and what's the best way?
Making a php script to run as a daemon process? Is that possible and okay?
View 9 Replies
View Related
Feb 7, 2011
Once I deleted a log file and recreated it. After I did so the new log file was not being written to. I was told that it is because the file I deleted is still running and being used in memory. What is the memory portion called(such as user space) that the filesystem run in?
View 5 Replies
View Related
Feb 22, 2010
I am attempting to recover a deleted text file. I used dd to make an image of the sectors on the hard drive which contained the data. Now, since I am not getting good results with foremost, and know all of the lines I'm looking for contain "Style", I want to grep the .img, but when I do it runs out of memory. I have tried the grep option -D, set to skip, and tried adding a 3GB swap to account for the 2.7G image. It still "exhausts" it's memory, and it seems to happen really quick now.this is the output of ulimit -a
Code:
root: $ ulimit -a
core file size (blocks, -c) 0
[code]....
View 12 Replies
View Related
Dec 3, 2010
I'm using vim 7.2.330 on 64 bit ubuntu 10.04, sometime in the last week every time I reopen a file it places the cursor at the top of the file. I can see in ~/.viminfo where it's saving the last position used, but it doesn't seem to be honoring it.
View 1 Replies
View Related
May 1, 2011
Is there a diary program for Linux that runs in the terminal?
View 1 Replies
View Related
May 25, 2011
So here's the problem. We've got the /etc/sudoers file set up so that users can run commands from /bin like "cat" or "mkdir" without entering a password. The problem is that the "su" command is also in /bin, so if they enter "sudo su", it gives them root access without a password. Here's the /etc/sudoers file:
Defaults targetpw
%users ALL=(ALL) ALL
root ALL=(ALL) ALL
support ALL=(ALL) NOPASSWD: /sbin/, /bin/, /opt/, /etc/init.d/, /elo/
support ALL=(ALL) NOPASSWD: /usr/bin/mysql
Is there a way I can deny /bin/su while still allowing the rest of the /bin commands?
View 1 Replies
View Related
Dec 27, 2009
I found this Is the Success of Google's Android a Threat to Free Software? (thanks to linuxtoday.com) and in the end it says
Quote:
Worse, if efforts to enable Android apps to run on distros like Ubuntu succeed, then we may see closed-source software being used on the free software stack there, too. Ironically, Android's success could harm not just open source's chances in the world of mobile phones, but even on the desktop.
I don't see how this is a threat too Linux but that's not why I'm here. I've never understood why some say that Linux is too fragmented for developing games and other applications. I mean Savage 2 comes in one Linux(.bin file) version and it runs on most of the distributions. What is the difference between all the package formats (like .rpm and .dpkg). Why won't a application run on all systems with the Linux kernel on it? Can someone with more computer and Linux knowledge please explain this to me?
View 5 Replies
View Related
Nov 2, 2010
I have been doing this for quite sometime now, yet lately I wonder if this is what everybody does...I have a task that will run for hours. In order to not to interrupt that task when I logoff for the day, I issued the command:
Code:
at now 'sh ~/a-long-task'
Is this what everybody else does?
View 2 Replies
View Related
Mar 3, 2011
I am trying to execute an awk script which is called by a shell script. The result is that it always responds with << ^ invalid char ' ' in expression >>
As I do not have command line access, I use a php script as go-around.
On the command line,
Code:
awk --version
gives the following output:
Code:
Command: awk --version
GNU Awk 3.1.3
[Code].....
View 4 Replies
View Related
Apr 11, 2010
I'm able to access my USB-drive (from which I'm running MEPIS right now) and my C-drive which has all my Windowsy stuff on it.I tried putting the (bad burn of a) CD-R into the drive and it was also recognized, but when I put a blank DVD-RW into the drive, nothing happens, and when I try to create a device-link, it tells me that medium does not exist
View 6 Replies
View Related
May 6, 2010
I wrote this little script and it runs very well, however when I setup a cronjob it only runs if I am logged in. I would like to have this script running even when I am not logged in. At the moment it runs but only when I am logged in. I logged as denis and in terminal (su root) and edited crontab as shown below, what do I need to change or setup to have this script run when no-one is logged in the computer. I run Fedora 12 (64 bit)
backup script:
cd /home/denis/Documents
tar -czvPf /home/denis/Backups/docsbackups_$(date +%Y%b%d_%HH%MM).tar.gz /home/denis/Documents
# above line will produce file with name in this format "docsbackups_date&time.tar.gz" in the /home/denis/Backups folder
[Code].....
View 4 Replies
View Related
Feb 10, 2011
I just installed Arch (x86_64). I am trying to setup Xorg. I have not installed a DE or WM yet, I just want to make sure Xorg is 100% first.
I had to edit the xorg.conf myself to direct it to my Intel graphics driver, but now it seems to work perfectly.
Except after exiting X, my terminal reads:
Code:
xinit: connection to X server lost
waiting for X server to shut down xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0"
XIO: fatal IO error 4 (Interrupted system call) on X server ":0"
after 1011 requests (1011 known processed) with 3 events remaining.
xterm: fatal IO error 104 (Connection reset by peer) or KillClient on X server ":0"
I'm pretty new to Linux and have no idea what this means! But I'm assuming it's not normal, because it says 'error'.
View 3 Replies
View Related
Jan 2, 2010
Just wiped Windows on a Dell Inspiron 8000 and installed Ubuntu. Most things going well but ran GIMP today and noticed the dissolve very slow. Think I might need more memory? I typed $ free -m and got this:
total used free shared buffers cached
Mem: 497 483 14 0 15 215
-/+ buffers/cache: 251 245
Swap: 839 43 796
I take this to mean I have 500MB of memory but most of it is used up on something? Does this explain why opening new windows incurs a lag of a few seconds and my GIMP slideshow runs very slowly? I was a pretty good Windows user but know very little about Linux.
View 8 Replies
View Related
Jun 9, 2011
I have a box that is Rec Hat Linux 5.4 with Apache server 2.2.3 . I'm told there are multiple vulnerabilities in Apache httpd, that version 2.2.16 or later is better. However, I did a package update this week and 2.2.3 is where I sit. Is there a newer version that will run or a patch for 2.2.3? Upgrading Red Hat is not an option.
View 3 Replies
View Related
Mar 28, 2011
I tried to install Ubuntu in my P3 computer so i can play with it, everything works fine but not after i reboot it. Now i got the user and password window on the desktop and drop-down-list of sessions, language, keyboard, date & Time and Shutdown button at the bottom.
Drop-down-list session:
Recovery Console
Ubuntu Desktop Edition
Ubuntu Desktop Edition (Safe Mode)
User Defined Session
With these 4 options, the third one which is the safe mode is the only option I was able to get through. Others are just desktop without toolbar or anything, right click with folder option are working though. Recovery console is just the CLI window but I don't know anything about Linux commands.
View 7 Replies
View Related
Nov 29, 2010
I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:
Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END
[code]...
View 6 Replies
View Related
Jul 17, 2010
below are the details of my system. I have bash as my current shell, some really common commands aren't working.
Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])
Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$
[Code]....
View 13 Replies
View Related
May 10, 2011
I'm trying to run a script on session start, so I added it to System -> Preferences -> Startup Applications.The script does run, but some of the commands inside don't appear to run at all. If after startup I open a terminal and run the script manually, it runs fine!
#!/bin/bash
if [ "$DISPLAY" == ":0.0" ]; then
tmux new -s Phys ;
[code]....
View 1 Replies
View Related
Feb 9, 2010
Whenever I start debian it runs fine until it gets to the DHCP part.It completley stops and spends like three minutes with stuff like
Code:
DHCP Request on port 57 interval 4
DHCP Request on port 57 interval 14
[code]....
View 3 Replies
View Related
Sep 15, 2010
I have cronjob that uses rsync to back up to a remote directory every hour. how do I set this rsync up so that if initial process is running already, it prevents running same rsync command and checks again in next hour until the process is finished/terminated?
View 5 Replies
View Related
Feb 14, 2010
I just had an ATT Uverse RG installed. However my Smoothwall router that previously worked fine with the ADSL SpeedStream is no longer accepting an address assignment DHCP ip address from this new gateway. (3800HGV-B)Any thoughts ideas or experience working with this hardware? ATT only supports Windows and Mac
View 2 Replies
View Related