08-24-2012
Automatic update script issue (Ubuntu server)
Hi,
I've created a very basic script to run apt-get update and apt-get dist-upgrade unattended (run with cron) and save the logs. Though, it's not really a script, just a file containing the commands to run in order: pasteit .com/18601
I'm currently testing this and ran into some unexpected behavior during the recent Kernel upgrade: pasteit .com/18602
It appears the grep for the Kernel name kicked in and restarted the server before the upgrade even started. Does apt-get dist-upgrade run in the background or should the script wait for the process to finish before proceeding to the next step?
The following day it then did it correctly but in a non-test scenario it wouldn't run for another month pasteit .com/18603
I'm basically trying to find out if this is a script error. Someone else mentioned that they checked the server the day it failed to update and apt-get dist-upgrade said there were no outstanding patches but I can't confirm this.
Any help would be appreciated!
Raxje
P.S. I realize that the -q is not required, will remove that!
8 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have a mail server with limited space and operating system is sun solaris 8 (sparc). I do not have provisions to increase the space for home directory.
So i have to delete files from /home/username/mail/trash which are more than 10 days old automatically.
So my script should be like... (1 Reply)
Discussion started by: crown2100bd
1 Replies
2. Shell Programming and Scripting
Hi everybody,
Is there a way to do a stat of files on a ftp server? I have a database which is populated by the contents of these files. I want to setup a crontab to check if there has been an update to these files. If the file has been updated I will download it and then update my database.
... (2 Replies)
Discussion started by: z1dane
2 Replies
3. UNIX for Dummies Questions & Answers
My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies
4. Windows & DOS: Issues & Discussions
Dear Experts,
I have database running,on windows server 2003 and my database are going down frequently due to some oracle bug.
I need help to configure the automatic script which run's and check the database status, if database is down then send me email.
Thanks in Advance. (32 Replies)
Discussion started by: Mohammed Fareed
32 Replies
5. Shell Programming and Scripting
Its a tough one and would appreciate any guidance for a script that i am trying to develop....Again I do understand its a complicated script and help would be greatly appreciated.... Thank you
1- Need to check for a file (in a certain location on a server) every 15 minute or so if it is there... (4 Replies)
Discussion started by: aavam
4 Replies
6. Shell Programming and Scripting
hi everyone,
I just began to be interested about the bash access.
I buy a time ago a Raspberry pi, I installed raspbmc and now I would like build a bash to copy everyday all new files inside my server directly on the hard drive in my Pi.
So my HDD is directly plug on my pi with usb connect,... (4 Replies)
Discussion started by: nagito34
4 Replies
7. Red Hat
Hi
i want to update the BASH because of the "shell shock" vulnerability.
my RedHat 5 is clean install with the default mirror site.
when im running the command: yum update bash
im getting a message saying there is no update. you can see in the attach picture...
what am i doing wrong? is... (4 Replies)
Discussion started by: guy3145
4 Replies
8. Shell Programming and Scripting
Hello,
I have a problem with the /etc/rc.d/init.d script to automatically update STEAM GAME ARK. I've converted 3 scripts into one, but something does not work correctly ...
The problem is in the file latestavailableupdate.txt / line 36/39. It think the problem is with script, it wrongly... (2 Replies)
Discussion started by: kshishu
2 Replies
LEARN ABOUT DEBIAN
sbuild-apt
SBUILD-APT(1) Debian sbuild SBUILD-APT(1)
NAME
sbuild-apt - run apt-get or apt-cache in an sbuild chroot
SYNOPSIS
sbuild-apt [-h|--help | -V|--version] CHROOT (apt-get|apt-cache) [ARG1 [ARG2 [ARGn...]]]
DESCRIPTION
sbuild-apt runs apt-get(1) or apt-cache(1) inside the specified chroot, along with any additional arguments.
OPTIONS
Actions
-h, --help
Display this manual.
-V, --version
Print version information.
Chroot selection
CHROOT The chroot to run the command in. Note that 'o', 's', 't', 'u' and 'e' may be used as abbreviations for 'oldstable', 'stable',
'testing', 'unstable' and 'experimental', respectively.
APT options
apt-get
Run apt-get.
apt-cache
Run apt-cache.
ARG Additional arguments to pass to apt-get or apt-cache.
EXAMPLES
To update the APT package lists in the unstable chroot:
% sbuild-apt unstable apt-get update
Note that sbuild-update(1) is a more convenient method for doing the above.
AUTHORS
Roger Leigh.
COPYRIGHT
Copyright (C) 2006-2008 Roger Leigh <rleigh@debian.org>.
SEE ALSO
apt-cache(1), apt-get(1), sbuild(1), sbuild-update(1), sbuild-upgrade(1).
Version 0.63.2 18 Aug 2012 SBUILD-APT(1)