Server :: Way To Setup Cronjob For Configuration?
May 27, 2010
I'm trying to setup a cronjob that needs to run every 40 minutes between 10am and 3.30pm.I generally used cronjob for simple configuration, but now I'm a bit lost.There is a way to setup cronjob for that configuration? (better if all in one line of code, not multilines).
View 4 Replies
ADVERTISEMENT
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 4, 2011
I need to set up an alarm to start at 7:30am and run every 5 seconds until I stop it. How would I acheive this in cron tab?
View 2 Replies
View Related
Jan 4, 2010
If you hadn't guessed it from my last 3000(ish) java-related posts, I'm a Java n00b writing a Java Applet for a work project. I got to the part was I was about to write the applet code that would send HTTP requests to my CGI scripts. But I read some paragraphs in a book praising Java servlets as better that CGI because they are easier to use and give much better performance server side. My server load isn't very big, though, and I was wondering if it would be worth taking the time to learn about Java servlets and how to set up the server side configuration on my Fedora web server.
View 3 Replies
View Related
Apr 15, 2010
I am rebuilding two microsystems servers and I need some advice to make my dreams come true.I want to setup the servers in a RAID configuration and want to install a GUI Linux application to manage a file server, manage a subnet, and host a Moodle on my subnet.I am planning to use Asus eee netbooks running Linux as my client computers. I basically need to be able to get my kids on the web and be able to have them use some open source office suite tools. No major crunching. I'll have two Macs for that.
View 3 Replies
View Related
Apr 30, 2010
I am trying to run the following only once every three months but looks like it runs every day. I edited crontab -e and added the following:
Code:
0 23 * jul,oct,jan,apr * /path/to/script > /var/log/script.log 2>&1
View 2 Replies
View Related
Apr 16, 2010
I would like to discuss setting up a mail server and its implications and alternatives. First, let us see if I have understood this correctly: A mail server consists of many different components. First, a server to listen to any mail inbound for a specific domain (say postfix), and then a POP3/IMAP server (say dovecot). Then, I should somehow configure the rules by which all mail is forwarded to their respective owners. This should be fairly simple by using debians package managers and dselect or whatever program it is that sets up right packages by use cases at the install.
But now lets assume a more complicated environment, where there are multiple users with different domains and needs. First, we need to send mail to ourselves from webapps for instance for backup purposes. So let's say we have a domain called domain.com setup, and we want to send mail to backup@domain.com. Unfortunately, some configuration issue makes the application get confused, because it is trying to send mail to itself, but doesn't quite understand what it should do. How can this problem can be solved?
Second, how could I configure different domains with different rules. For instance, if I want one domain to have a catch-all account, where random email sent to erroneous accounts is captured? Or if I want to create accounts which are not based on actual Debian accounts, but instead just random usernames (say, danny@domain.com, mike@domain.com, support@domain.com etc.)?
Finally, which are the best web-guis for doing such configuration? What if the customer wants to himself add accounts? I cannot require him to edit text files - especially if he can thus break the whole configuration for other customers as well.. postfix-admin is one, but it is quite crude-looking. Is there something which integrates both postfix, apache and dovecot configuration? How about Webmin?
View 2 Replies
View Related
May 10, 2010
I have the following Cron job scheduled on my Postfix mail server: Code: 00 18 * * * /usr/bin/clamscan -r --remove /home/.This is just running a scan on my entire /home/ directory and removing any infected files it finds. My question is since this is being ran at 6pm via Cron, how can I get the results of this job emailed to me via text? Does anyone recommend a command I can add to the end which will dump the results into a file or email and send it to a specific email address? This server is my company Postfix MTA for everyone.
View 14 Replies
View Related
Jun 1, 2010
If I make a cronjob to reboot a server every 3 days at like 2am? This way it will free up ram, etc and cause less problems right? I know a guy that is doing this, and I'm trying to convince him otherwise.
View 5 Replies
View Related
Feb 8, 2010
Could anyone point me to some simple articles that explain what email encryption is and how to set up a mail server (e.g. Exim) that can send secure emails? I know nothing about networks, mail servers, encryption, etc., but I have to be an expert on it before I walk into work tomorrow morning.
View 14 Replies
View Related
Mar 4, 2011
I'm trying to set up a bind9 server for my home network, I have all my IPs set to 10.0.0.X. I would like the forward and reverse to be simply "machinename", not "machinename.domain.com", as I don't want to type a domain everytime.
In my named.conf
zone "net.local" in {
type master;
file "/etc/bind/net.local.ns";
allow-update { none; };
[Code]...
View 1 Replies
View Related
Mar 28, 2011
I have a computer that I would like to backup the home directory onto a server. I created a script called wien_backup.sh that contains the following:
#!/bin/bash -l
/usr/bin/rsync -rv --delete-after --ignore-errors -e /usr/bin/ssh root@wngr403-unix2:/home/ /space/systemimager/Wien/
where wngr403-unix2 is the computer I am backing up, and the script is ran from the server. If I run the script by itself, it works just fine. If I run it as a cronjob, the /var/log/syslog says it ran, but it does nothing.
View 6 Replies
View Related
May 31, 2010
we have a weird problem with our opensuse 11.2 server installation.
We want to set up a LDAP Server using the Yast-LDAP Server configuriation tool.
This indeed already worked weeks ago until....this week.
Maybe some updates??!
I do not know what happend exactly. The server just does not want to start again and throws following error:
Starting ldap-serverstartproc: exit status of parent of /usr/lib/openldap/slapd: 1 failed
This happend after a little check of the configuration, but without a change, with Yast. Google delivered only "reinstall your box"-answers.
So.. i did that. And now the "mystical" part: The SAME ERROR occurs with a fresh vanilla system with a brand new and simple configuration (certificats, database, pw...the first Yast config dialog...). I did not change the way i set it up.
I remember, when i did this the first time with 11.2 on that machine, when no problems occured...everything was running out of the box (except the "use commen server certificate" option...).
View 4 Replies
View Related
May 30, 2010
I'm trying to setup a NFS4 server (no security, local home network behind FW). It seems that I'm missing something because 'rpcinfo -p' does not list v4 for NFS: petit-pois:/home/eric# rpcinfo -p
[Code]...
View 3 Replies
View Related
Mar 29, 2011
I know that you can access and run any script of the web by wget:
Code:
wget mydomain.com/page.php
But this is literally accessing it externally through the web, i think that it is safer and faster to access the script internally. I am using lighttpd to host my php pages, and is there a way to do that? I have had some hosting experiences, the cronjobs on the hosts let u input:
Code:
* * * * * php /public_html/path/page.php
View 2 Replies
View Related
Jan 19, 2010
We are trying to set up a NIS server on a CentOS system. We need to have a NIS server which can provide NIS authentication to a couple of clients. We are practically new to all this stuff.
Just googled to find some ideas about installing ypserv and ypbind and portmapper. We did all that and also started them successfully. But now the clients are not able to join to the NIS domain . The error log states "YP_DOMAIN NOT BOUND".
I guess we have not entered the /etc/yp.conf, /etc/hosts files properly. Please let us know the detailed steps to setup a NIS server .
Also, please let us know what entries should go into the different /etc/<file_names>? What is meant by HOSTNAME in the /etc/hosts file?
Is there any other files which need to be changed? Are we missing any steps?
Also to add-on, while executing the ypinit command we faced the following error:
At this point, we have to construct a list of the hosts which will run NIS servers. localhost.localdomain is in the list of NIS server hosts. Please cont inue to add the names for the other hosts, one per line. When you are done with the list, type a <control D>. next host to add: localhost.localdomain next host to add:
The current list of NIS servers looks like this:
Is this correct? [y/n: y] y
Error running Makefile.
View 3 Replies
View Related
Apr 24, 2011
I want to setup a FAI server for which I was looking for the best method of mirroring the Debian Lenny. I want to setup a local mirror with the best method available for mirroring. If it is ftpsync, please provide me some best ways of doing it. I tried ftpsync mirroring but that was not getting properly working due to insufficient I want this mirror to be accessible in my FAI setup so that I can start the installation on multiple machines and start the updates and package installation to be done from the same local mirror.
View 1 Replies
View Related
Oct 22, 2010
How to setup a SMS server using Linux, also want to know the appropriate Linux distribution to setup a SMS server.
View 2 Replies
View Related
Jul 28, 2015
I do not care to have the DNS server public but more for internal networking at the moment. I have comcast and the server is directly to the modem (10.0.0.1) with a static IP which is 10.0.0.6
I created a zone, local and reverse inside /etc/bind
When I try to execute:
Code: Select all#/etc/init.d/bind9 start
I get a failure.
When I check syslog I get:
Code: Select all#/var/log/syslog -
somwhere in the log it would say.
Opening /[my sudo username]
Failed /[my sudo username] no such file or directory
my resolv.conf in the etc folder keeps reconfiguring itself everytime I restart networking
View 1 Replies
View Related
Jan 17, 2016
Using PKI infrastructure in the environment, preferably a two tier hierarchy? I would like to setup one the way I setup in Windows Server, so was thinking to set one on Linux.
View 2 Replies
View Related
Feb 27, 2010
i am trying to get a pxe server working on a debian so other clients can boot off it. the problem has two parts.
1. getting the pxe working. so far the tftp part doesnt work. the client says tftp error. so i guess the dhcp portion is working, but theres something wrong with the /var/lib/tftpboot or the deamon config itself.
2. the other issue is that in the shop many system's have non-working disk drives. also many of them do not have a usb boot option in the bios. all i need to do is get the "bare" kernel file or grub(?) to boot over pxe and give me the ability to boot from a usb flash drive and load the rest of the linux files from there. my primary intention is NOT netinstall. although it wouldnt hurt. my intention is running a linux live usb on systems without bios usb boot support. ive read somewhere that a full pxe live boot requires nfs setup. i am asking for that, just so i can boot from a flash drive.
View 4 Replies
View Related
Sep 14, 2010
I've illustrated it on this picture, and hope to get the help i need to set it up... [URL]Thow it has to be furture secured, in that meaning it has to be abel to attach a eth2 on the main server, so i have 3 NIC's.Also, i want to have fully controll over ports, IP/MAC's and data overview (Such as a view of the files beeing downloadet/uploadet).
View 3 Replies
View Related
Apr 17, 2011
I posted a previous topic on bridging, and that didn't seem to work, so I went with Shorewall and I'm trying to setup NAT, but I'm struggling very badly. I have the interfaces configured where eth1 is my Local LAN (loc) network, and eth0 connects to my ISP (net). But my problem is that I have no clue how to forward traffic from eth1 to eth0, without using ProxyARP, which routes all traffic to eth1, and doesn't allow traffic out on itself. I've looked at the NAT tutorials, and they don't make sense to me, because I have two interfaces that I want to be able to talk to each other and the internet at the same time. Is there anyone who's good with Shorewall?
View 3 Replies
View Related
Mar 11, 2010
using Debian 5.0, GNOME desktop.my DSL service was to be connected today.the problem is my DSL light keeps blinking.ethernet light is solid.how do i setup my DHCP on my computer
View 12 Replies
View Related
Nov 10, 2010
I follow the tutorial at [URL] to setup git over http, and create ssl self-signed cert through [URL]. (The command executed above is exactly the same as described in url, with only change to the name required.) However, while executing `git push upload master', command line prompt throws:
error: Config with no key for remote upload-url
fatal: bad config file line 9 in config
What might be the root cause?
View 2 Replies
View Related
Feb 21, 2011
how can i setup ddclient at startup i already configured the client all i need is to let it start on bootup
View 3 Replies
View Related
Feb 22, 2011
When I click on Network Manager client in the Gnome Panel -> vpn connections -> configure vpn, the add button is not enabled.
View 5 Replies
View Related
Feb 27, 2011
I'm new here, I hope someone can help me get wireless working on my laptop. This is a Toshiba Satellite Pro C650-EZ1533 (Intel Core i3). The Toshiba site says it has "Atheros Wireless networking (802.11b/g/n)", but does not identify the hardware more specifically.
I installed Debian 6.0 from a netinstall disc, the version including nonfree hardware drivers. In the software selection I went with the defaults: only "Desktop environment", "Laptop" and "Basic system".
Now the GUI looks nice and behaves OK, and the audio, video, ethernet, and optical drive are working. However, I don't know how to configure wireless. It's probably my fault. I was installing and uninstalling file managers, trying to find one I would like better than Nautilus. When I went to uninstall one of them, a message in the package manager recommended using a command like "auto remove" or similar (I did not record it exactly). My understanding at the time was that this would only remove things that were installed because of dependencies but were no longer needed. However, *a lot* of things disappeard from the menus.
Now the only thing about networking in the menus is something about setting up a proxy. There should be some sort of network manager, right? Or an icon on the taskbar, maybe? But I don't know what package to install.
View 3 Replies
View Related
May 1, 2011
I installed Debian GNU/Linux and Debian GNU/kFreeBSD on the same system. I didn't reinstall grub with kfreebsd, because I figured running grub-mkconfig would modify grub.cfg. But it didn't.It recognized the Debian GNU/kFreeBSD as GNU/Linux (6.0.1):
### BEGIN /etc/grub.d/30_os-prober ###
Found Debian GNU/Linux (6.0.1) on /dev/sda3
### END /etc/grub.d/30_os-prober ###
View 2 Replies
View Related
Mar 23, 2010
I run ubuntu 9.10 and i've set up my drivers/music player/themes/browser etc just the way i like them. However I now want to install XP and dual-boot. My hard drive is not partitoned, so I want to ask if there is a way to save my setup to use after installing XP.
View 5 Replies
View Related