Software :: Call Website With Bash Script From Private Server?

Jun 30, 2011

Me and my friends have a website about games and stuff. The web hotel we use clears the app-pool when it has been inactive for 15 minutes. We don't have that many users yet so this is a problem because it takes ages to load if it has been inactive. I came up with the brilliant idea of calling the website with a script from my private server at home every 5 minutes or so. That way it would never go down.

I used some lines from another of my scripts:
wget -q -O - http://homepage.se/ > /path/to/a/file.txt
cat /dev/null > /path/to/a/file.txt
and put it in crontab.

The script runs and all and I think it's better now but we can't know for sure if it is the scripts doing. Sometimes it's just as slow as ever and I start to think the script doesn't do anything. I've tried adding more wget-lines to fetch some different pages from the site and now running it every 3rd minute. No difference. Does anyone know another way to call a website in a way that would solve my problems? Am I using the wrong options with wget maybe? I've tried lynx (and piping to file) but it didn't work.

View 7 Replies


ADVERTISEMENT

Ubuntu Servers :: Test Website In Private Cloud?

Oct 15, 2010

I have installed Ubuntu enterprise cloud on two machines(Cluster and node)and trying to set up an image and test my internal website in private cloud. if there is any documentation or any steps?

View 1 Replies View Related

Ubuntu Servers :: Apache - Execute A Bash Script That Uploads A File To Another Server Through A Website?

Sep 20, 2010

I have a web server in my kitchen with apache running on it. Since the upload speed is quite low due to my isp I would like to execute a bash script that uploads a file to another server through a website (which is htaccess protected) The idea in general: Someone with access to my website browses through a folder, copies a file path to an input form and presses "upload". Rather than executing a bash script directly I could have a cron job running in background that finds the path and then uploads the file to the other server I have userspace on and is accessible via sftp/ssh. The file would be than erased later after a couple of days or so. That person would be able to access the file with higher speed some time later without logging in via ssh and doing all that manually.

View 2 Replies View Related

Ubuntu :: Javascript To Call Bash Command

Sep 21, 2010

First, i have no experience with javascript. I came across an interesting site and I'm curious if I could make a private webpage to call some shell commands or just open a terminal.Yes, i know this could potentially be malicious and possibly illegal. Again it's for my own private usage.

View 1 Replies View Related

General :: Call Another Bash Script To Run On A Subfolder?

Sep 29, 2010

I want my bash script to run scripts located on a different folder. If it is also located on the same folder with my script, it will go like this:

on my $HOME folder: (this_script.sh, backup.sh, restore.sh, purge.sh)
#!/bin/bash
./backup.sh
./restore.sh
./purge.sh

But what if, on my $HOME folder: (this_script.sh)

$HOME/scripts folder: ( backup.sh,restore.sh, purge.sh )

Below doesn't work...

#!/bin/bash
./$HOME/scripts/backup.sh

View 5 Replies View Related

Programming :: Write A Bash Script To Call From A Terminal?

May 24, 2010

I am trying to write a bash script to call from a terminal that will change the terminal title. I am using ubuntu 10.04. The script is meant to be used in the gnome-terminal.

Here is what I have:

Code: #! bin/bash
echo "New title: c"
read title
echo "33]0;$titl07c" -e

[Code]....

it doesn't work

I think the problem has to do with modifying PS1 inside the bash so i tried this:

Code: echo `export PS1="[e]1;u@h:wa]${debian_chroot:+($debian_chroot)}u@h:w$ "` and it still didn't work.

View 1 Replies View Related

Programming :: Java Coding To Use Call The Bash Script?

Oct 31, 2010

i am using front end as java and back end RHEL5.i am trying to calling a bash script with java. but i am facing problem.i am using following java coding to use call the bash script

import java.util.*;
import java.io.*;
public class b

[code]....

View 4 Replies View Related

General :: Cd Dirname - Use The Output Of A Nested Bash Builtin Call

May 2, 2011

I'm trying to remember how to use the output of a nested Bash builtin call. So `which prog` gives me the path to the program, i'm interested in. Then I would like to get the directory path leading to that program and plug it into 'cd', so i end up in the directory containing the program.

View 5 Replies View Related

General :: System Call (not Bash Command) To Format Partition?

Feb 18, 2011

I'm working on Linux OS (Suse/redhat) and trying to format a linux partition from a c program. Is there a way to do this without using : 'system ("mkfs.ext4 /dev/sdxy")'

View 4 Replies View Related

Ubuntu Security :: Private Folder For Private Files?

Aug 18, 2010

i noticed that all files can be seen by another computer if the drive is accessed

can I stop this? can i set a private folder?

View 7 Replies View Related

General :: Writing A Bash Shell Script For Website Backup

Aug 10, 2010

I am about to write my first shell script for backing up my server.

These are the steps I have identified so far.

Copy files to be backed up to /srv/backup/ run mysqldump and copy the file to srv/backup/databases run duplicity to backup /srv/backup/* to another folder on my machine

I am writing a bash shell scrip that will be run everyday, and will carry out the three tasks mentioned above.

Note: point 3 (backing up to a local folder) is only a temporary measure - to allow me to understand what I'm doing, since all the tools I am using, are new to me. Once I can backup and restore correctly, I will use duplicity to compress and encrypt the files and upload them offsite.

If my understanding of duplicity is correct (according to the documentation here), the first time I run the script, a FULL backup will be done. Every subsequent backup will then be incremental. I will then force a FULL back on say a weekend.

First things first though - I have a few questions:

I would like to use backup rotation for the 'scheme' described above - I would like some recommendations on what kind/type of rotation to use. Once I have implemented the backup rotation, how can I restore from a particular day back in time (assuming the backup exists of course). ?

I am running Ubuntu 10.0.4

View 1 Replies View Related

General :: Make Simple Website In System Using Bash Scripting?

Apr 3, 2011

How to made a simple website in linux using bash scripting.

View 3 Replies View Related

Server :: Created The Csr And Copied The Key To The /etc/ssl/private?

Jun 8, 2011

I have been using a self signed certificate on my ubuntu server 10.4, using Apache.Today I bought a certificate from optimumssl. I created the csr and copied the key to the /etc/ssl/private as before. I then copied the newly supplied certificate to /etc/ssl/certs as before and changed my /etc/apache2/sites-enabled/domainname to pint to the correct certificate name.I now can't start Apache as I have this error below[error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

View 1 Replies View Related

Programming :: Bash - Use The Call Command (displays The Current Month And The Next Month)?

Mar 8, 2011

how i can use the cal command so it displays the current month and the next month, i know you can use cal -3 9 2007 to show the previous current and next but i just want to display the current and next.

View 9 Replies View Related

Software :: Script That Call A Java Program That Call A System Command?

Nov 29, 2010

In practice I have a script that call a java program that call a linux system command. The script if I run it, from a shell functions well,so it is not a java problem. The problem come out when i put this script in a crontab schedulation. The result in this case is that java do not execute the system command. I think it depends on crontab

View 4 Replies View Related

Fedora :: Private BInd DNS Server Not Accessible To Other?

Sep 22, 2009

i am working on fedora 10 and configured dns on my college lan which already has it's dns at 192.168.5.20 .So i configured my private dns server at 192.168.101.91 which is my ip too.And the domain name is the host name of my system for example server.onkie.com.MY dns port 53 is shown when i do nmap localhost but but doesnt show when i do nmap 192.168.101.91 .Also when tested my server on other computers on my lan with there primary dns as 192.168.5.20 and secondary as 192.168.101.91 they cant access my site at my system with the name server.onkie.com . nmap localhost

[Code]...

View 1 Replies View Related

Ubuntu Security :: Create Private GPG Key Server?

Jan 25, 2011

One of my clients is considering implementing GPG or a similar technology to encrypt internal emails. (They have a different system in place already for external mail.) I've done some reading on the subject but can't seem to find any information about how one might set up a keyserver. All the discussions I've seen so far talk about uploading the public keys to a server like keyserverDoes anyone know what software packages might be used to set up our own private keyserver on a Linux machine?

View 2 Replies View Related

Server :: Configuring Sendmail For A Private Network?

Jul 6, 2009

My goal is to have users(Unix Users like root on host1) use evolution /sendmail to send and receive emails between users( Unix users either from host1 or any other host on n a private network. The network is a private network with a few servers without any connection to Internet and no DNS. They resolve one another by /etc/hosts. with smtp configured am able to send and receive emails on one machine(host1) from unix user abc on host1 to user xyz on host1 and vice versa. the commad i used to test is host1@abc #echo "this is a test mail" |mailx zyx@host1 But when i tried sending from user abc on host1 to user xyz on host2 its giving error for DNS unable to resolve hostname.

the commad i used to test is host1@abc# echo "this is a test mail" |mailx zyx@host2 create a simple sendmail config so that i can send mails between multiple hosts using unix usernames within one network. I can use one of the server as mail server and rest as clients. I dont want to configure any other softwares for pop or imap access. I want to keep it simple and use evolution on the clients to send emails between one another on the private network without internet.

View 1 Replies View Related

CentOS 5 Server :: Transfer Files To Private IP?

Nov 18, 2010

I have a server with Private IP and without any public IP. I want to transfer files to the private IP. I can log in to the Private IP through SSH. So basically I installed vsftpd in the server with Public Ip and tried to ftp the public ip from the private ip but it is not working.

View 1 Replies View Related

Ubuntu Networking :: Terminal Server Client To Private IP?

Jan 26, 2011

I'm currently successfully using the Terminal Server Client to connect to an SBS 2003 server at a remote location. I've been trying to figure out if it's possible to connect to any of the XP machines on the LAN behind it. I currently have to use RWW in IE on a VirtualBox XP machine to do that, and I'd love to be able to get rid of VirtualBox completely.

The server has 2 NICs, one connected to the internet, and the other connected to the LAN. There is only one public IP. The computer I'd most like to connect to has a static, private IP. Anybody done anything like this or have any thoughts on how to get it to work?

View 2 Replies View Related

Ubuntu Networking :: Public IP Vs Private IP For DHCP Server?

Feb 12, 2011

My Ubuntu server is now providing routing duties to my network, but I'm having trouble opening ports to my network. I have a DynDNS account, so the IP is always current, but I can't ping even my IP directly.

My network map looks like

Internet > SpeedTouch DSL modem with DHCP > eth1 > Ubuntu > eth0 > LAN

With the modem providing a 192.168.1.xx IP to eth1, I can browse fine. The default gateway is my modem. I switched to the public IP of the modem so I could use iptables for firewall duties, but I was locked out of the internet. No gateway was set when I did that, but eth1 received the public IP of my modem.

How can I use the public IP assigned to eth1?

View 6 Replies View Related

Networking :: Server Can't Ping Other Boxes On Private Network

Jul 27, 2011

I run a server that is connected to several other boxes in a private network (192.168.0.0). I have had no problems previously, but upon a reinstall of Debian squeeze I have no connectivity to the private network: a ping of other addresses on that network fail. Ping and connection to outside world is fine. This box is configured similarly to another on this private network which connects successfully. I have quadruple-checked all my basic information. I post my ifconfig below of the malfunctioning device, then the ifconfig for equivalent nic on a box connected succesfully to the private network.

Questions:

1.Could it be a cable problem? (I don't see how since the cables have not been changed I do not believe since my reinstallation).

2. What about the difference in the last lines of eth1 below and eth2 of the successful box. Is it significant that the bad eth1 reads Memory:fc3a0000-fc3c0000

View 5 Replies View Related

Server :: No Supported Authentication Methods Available When Using A Private Key For Login?

Mar 1, 2011

I keep getting the above message when trying to login to my server using a private key,is there something I am missing from the configs here?Quote:

#$OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.

[code]...

View 8 Replies View Related

Server :: Postfix Private IP For Mail Boxes And Limiting?

Jul 6, 2010

Im using postfix on my server and i need change a ip adresses for mail boxes.Example : xxx@xxx.com using x.x.x.1 ip adres.and i need yyy@xxx.com how it can use x.x.x.2 adress.How can i do that ?And i need count which mail how much mail sended .How can i count and limit ?

View 2 Replies View Related

Server :: Trying To Build A Ssh Jumpbox - Allow To Jump To A Private Ip Scheme

Jun 12, 2010

i am trying to build a server that will allow us to jump to a private ip scheme. GB1 65.20.x.x gb2 1.1.x.x if i ssh to the 65.24 ip and configure gb2 i lose access to the server completely. am i missing a route somewhere? BTW this is ubuntu server 10.04

View 5 Replies View Related

Software :: Possible To Do Public And Private Ftp Server In One Host Without Using Tcp Wrapper?

May 13, 2011

I want to know that it is possible to do public and private ftp server in one host without using tcp wrapper.

View 1 Replies View Related

Ubuntu Servers :: Using X11vnc On Virtual Private Server To Connect

Sep 26, 2010

I have a virtual private server that I am trying to connect to using x11vnc. I ran this through ssh to setup gnome

sudo apt-get install gnome-core
sudo apt-get install gdm
sudo /etc/init.d/gdm start
sudo dpkg-reconfigure xserver-xorg

I later ran sudo apt-get install ubuntu-desktop to see if that would help.

Code:
#cat /etc/issue
Ubuntu 10.04.1 LTS
l
Code:
#sudo startx
Fatal server error:
xf860OpenConsole: Cannot open /dev/tty0 (No such file or directory)
I assume this is because it probably doesn't have a video card.
[Code]...

View 4 Replies View Related

Server :: Stop Root Sending Email To A Private Address?

Nov 4, 2010

system is RedHat v4. I removed root: admin-name@domain from /etc/aliases then ran /usr/bin/newaliases.

The admin does not get the emails but now the email generated by the cronjobs is being sent to my-name@domain outlook email from "root@localhost.localddomain". No other changes were made. Where should I start looking for the definition of sent crontab email to my-name@domain?

View 3 Replies View Related

Server :: Beowulf Cluster With Xen On IBM Bladecenter For Private Virtual Machine Farm

Feb 16, 2009

I'm probably dreaming, but I have a hobby project in mind that I would like feed I have an opportunity to purchase a 3 year old fully populated (14 x 3Ghz dual Xeon nodes) IBM bladecenter relatively inexpensively.I thought it would be fun to set it up as a beowulf cluster with open source xen and test the market to see what people would pay for Private virtual machines.

My thoughts are to use 64 bit Centos 5 as a base to get the beowulf cluster up and then load xen.I haven't really looked at the market but I figure I should be able to run 50 private virtual machines charging say $50 per month. I figure I can use rsync to backup the virtual machines to a different location. I plan to connect to linux based Network Storage running 3 x sata 1TB drives, probably via iSCSI. Along with the drive capacity currently on the blades I should get 2-3Tb online capacity over a Gbit network. (Cisco 14 + 4 network switch module)

I realise I have a bit of setup work to do and before I go investing a lot of time and a little money I'd appreciate some pragmatic advice as to why this may be a stupid venture.

View 2 Replies View Related

OpenSUSE :: Setup Private Git Repository With Restricted Rights On Server Without Root Access?

May 15, 2011

a friend of mine is doing a small website-project in school (group of ~6 people). They want to use git as VCS and need acces to a server. I have an account on the server from university, but - of course - no root access.

I could create private/public keys for them, to SSH into my account, but I don't want them to have this power I found 'git-shell', which seems to be used for restricted access with git (although I'm not sure whether I understood the functionality).

My question is: Is it possible to configure SSH keys in that way, that the server runs them (and only them) in git-shell in a specified directory (using ~/.ssh/{config,authorized_keys})?

So that they can
- log in with their SSH key
- use git, execute scripts etc.
- use git push/pull from their private+school PC
- work only in a specific directory (like chroot) eg. ~/web-project/

[Code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved