Ubuntu :: Creating Shell Script From Source Code For Cron?
Jan 31, 2010
This is regarding the KDE application Basket:
I want to create a shell script that I can run as a cron job to do automated backups. how to proceed. I have the source code and have pulled out the backup source files. Here is the link for the source code. The download is at the bottom of this page. The backup files can be found in the src folder listed as backup.cpp and backup.h [URL]
If someone can do this, I believe it will make a nice addition to the Basket application for all.
Also I am not running Kubuntu I am running Karmic 9.10 64 bit
View 8 Replies
ADVERTISEMENT
Nov 3, 2010
i need the source code to create my own shell in linux or provide atleast procedure for doing it
View 9 Replies
View Related
Jun 30, 2011
I had made some modifications in the source code of a software called "HomeBank". I'm not able to make a setup file using "Inno setup".how to create an .EXE file for the source code to execute.
View 2 Replies
View Related
Aug 1, 2010
this is srinath,newbie to linux and shell scripts.am in need of shell script,which have to checkout the source code(C/C++) from CVS server to a specified directory and compile that source code and get all its dependency files to a specified directory.
View 2 Replies
View Related
Apr 11, 2011
i am already a little bit familiar with linux and now i want to know better the linux OS. i have downloaded the source code of the krnel from the kernel.org and i dont understand the linux source trees organization, so can somebody do me a favor and give me a link to some internet page (or at least a book) that explains that?? i have searched in the internet with the tag:::linux source trees organization and i have not found nothing interesting
View 1 Replies
View Related
Sep 12, 2010
I want to see the source code of smplayer software.from where i can see source code of open source softwares?
View 9 Replies
View Related
Aug 17, 2011
create a Cron file and script. I've tried reading through my Linux book but I am just lost here. I need to create a Cron file that will perform a Level 0 backup once per month, a Level 2 dump one day per week, and a Level 5 dump every day that neither a level 0 nor a level 2 dump is performed.
View 5 Replies
View Related
Oct 12, 2010
I have a script that I would like to run using 'cron'. I want to use 'scp' to transfer files from one machine to another. I have set up the SSH keys on both machines. When I run the script from bash terminal, it works flawlessly. But when I schedule a 'cron' job to run the same script, 'scp' does not transfer the files.
'Return value' is 0 when the script is run from bash directly. But when it runs from 'cron', the 'Return value' is 1. That means, surely, that 'scp' is throwing an error. I don't know which error is being encountered. Could anybody let me know how to make it work?
View 8 Replies
View Related
Jan 20, 2010
I'm creating a script all worked fine in the command line. But not work in the cron. Below you could see the script
[Code]...
So far I found when I use corn following part not working, nothing goes to the processedfiles file. ls -l /var/lct/mou2/processed | grep $TODAY | awk '{print " " $8}' > /home/trans/mou/processedfiles ls -l /var/lct/mou2/processed | grep $YESTERDAY | awk '{print " " $8}' >> /home/trans/mou/processedfiles This work perfect in command line. Corn job and command line use by the same user.
View 6 Replies
View Related
Apr 1, 2011
I write a shell script below to add a job to cron.
#!/bin/sh
touch date.cron
echo '*/3 * * * * /usr/sbin/ntpdate 192.168.2.3' >date.cron
[code]....
View 4 Replies
View Related
May 18, 2010
I have a cron job that runs a shell script. But it only runs the first line of that shell script and not the rest of the file. I'm a little stumped as to why. If I run the shell script manually, it runs and executes every single line as it should. I think I must need some additional syntax to make this run correctly?
Here is the crontab ...
Code:
root@kchlinux:~/macs# crontab -l
# m h dom mon dow command
[code]....
View 2 Replies
View Related
Jun 16, 2010
Setup: 10.04 server with "bash" as /bin/sh
When I run "ls -l" in a shell I get the following format:
Code:
-rw-r----- 1 syslog adm 0 2010-06-13 06:53 /var/log/user.log
Whereas if "ls -l" executes from a cron job the format is:
Code:
-rw-r----- 1 syslog adm 0 Jun 13 06:53 /var/log/user.log
Notice the different time format. Now I could fix this by changing the cron job to
Code:
ls -l --time-style=+%Y-%m-%d %H:%M ...
but I'm interested in knowing why this behavior occurs. What's different between the cron job and the shell?
View 1 Replies
View Related
Sep 30, 2010
My backup script works fine after some effort to get it where I wanted it. So the script is fine when I run it.
sudo bash backup.sh
now I have a sym-link to /etc/cron.daily but I do not see any new backups
View 9 Replies
View Related
Jul 20, 2010
I have been using Linux for 2 months, specifically Ubuntu, and been wondering where the source code is. Not only do I wonder where the kernel source code is but also where the source code for the installed programs are.
View 2 Replies
View Related
Sep 24, 2009
I've been having a bit of trouble running a shell script with cron. A friend of mine does a community radio show and the station has a live stream but no podcasts, so I've set up a script to record the stream and encode it as an mp3 while I'm away using mplayer and lame -that's what I'm trying to do anyway.
Here's the script, but it doesn't seem to run- at least, I don't see any of the files it should be outputing, would they be in the cron.weekly directory (where I have the script) or in my home directory?
#This is a script to record 'The Unnamed Show'
#it will record the show from the live stream, then convert the output #to an MP3
#Finally, it will delete any files no longer required HOME=/home/byron/
View 2 Replies
View Related
Jul 1, 2010
Im having some difficulties with running a shell script from cron which I am unable to resolve for almost 2 days now.
For testing purposes, im trying this with simple shell script test.sh with chmod 777
This script is located at /var
When I type /var/test.sh it runs perfectly and prints asdasdasd
When I type /var/test.sh > /home/log it writes asdasdasd to /home/log - works
The problem occurs whenever I add it as a cron job to var/spool/cron/crontab/root
There is: 11 10 * * * /var/test.sh > /home/log - however, at 10:11 there is no file at /home/log
Cron as a service works, forexample, every day at 4 am it makes this backup sshpass -p xxxx rsync -avz -e ssh root@x.x.10.7:/data/backup/ /home/backups/isp_admin
However,
doesnt makes the folder
Where is the catch?
View 3 Replies
View Related
Jul 8, 2011
I am using Shell Script to run my Java program. I have written a Cron job to invoke Shell Script every day at 7pm. Cron job is running every day at 7pm ,but it is not invoking my shellscript and also I am not getting any error message. I am able to run same shell script from cmd propmt using bash, and also I am able to invoke the same script from mainframes Universal command job. Same ShellScript and Same cronjob is working fine in my Dev server. But in my QA server it is not working.
View 7 Replies
View Related
Mar 3, 2010
Is there a guide on creating a package from PHP scripts or something? Example: if I've developed a system and I want to make it to a deb file to deploy to my friends and such. I've tried looking for one but I have not been lucky so far.
View 4 Replies
View Related
Oct 16, 2010
where can i get the full source code of ubuntu ?
i want to study it and mayb il make my own os in the future.
View 3 Replies
View Related
Mar 27, 2011
How to edit Ubuntu Source code to edit Ubuntu how I want? I know I am legally allowed to modify the code but I do not know how?
View 2 Replies
View Related
Jun 7, 2011
Where can I obtain the source code for Ubuntu 10.04.1 LTS?
View 1 Replies
View Related
Jul 24, 2009
I downloaded wine from a windows laptop, but because you have to have a computer running Linux to download it as a .deb package, I had to download the source code as a tar. bz2.
Does anyone know how I compile it and make it executable?
View 6 Replies
View Related
Jul 11, 2011
I have an Ubuntu server running Couch Potato, Sick Beard and Sabnzbdplus. Everything "works" pretty well in a sense that CP and SB push the NZB's to Sabnzbdplus, but Sab crashes regularly (haven't found the solution or the cause for this problem, so if you have some advice regarding that, it's welcome).To counter this problem (Sab crashing) I have a script written which checks if Sab is runnning and if it isn't start it:
Code:
bart@Pyro:~$ cat CheckSabRunning.sh
#!/bin/sh
[code]....
View 9 Replies
View Related
Nov 23, 2010
What would happen if I place more than one shell script in the cron.weekly directory. would they run at the same time?
View 1 Replies
View Related
May 19, 2010
I was trying to install VPN client for my Ubuntu 9.10 64-bit. During the installation process the terminal reads:
"Directory containing linux kernel source code [/lib/modules/2.6.31-21-generic/build]"
On that I pressed enter for the default option (in bold). After a few more steps I reached the following error:
Making module
sh: Can't open ./driver_build.sh
Failed to make module "cisco_ipsec.ko".
[/lib/modules/2.6.31-21-generic/build] is the location where the installer expects the kernel source to be (I am guessing). So unless I correct the terminal (by providing the location of the kernel source), I think I will keep on getting the same error message.
So to get the kernel source I visited: [URL]From there I copy pasted the command:
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
Everything went fine, but even now I don't know if at all I have a kernel source and where it exists on my machine.
View 2 Replies
View Related
Jun 10, 2010
I am following these instructions to install gnu backgammon. However I am doing this for the first time and I don't know how to get their source code from their site (here). Do I download everything?
View 2 Replies
View Related
Sep 13, 2010
does anyone know where to find the full Ubuntu source code all i can find is the kernel source. if any knows where to get the full source code for any major Linux distribution could they let me know.
View 3 Replies
View Related
Oct 4, 2010
I want to modify the source code of the kernel so that the new compiled kernel should disable USB ports.
View 4 Replies
View Related
Nov 2, 2010
I am wonder if somebody could take the time to teach me to install or compile a program from source.I have downloaded ZSNES from sourceforge but cannot figure out how to install it from the command prompt or using the package manager.
View 9 Replies
View Related
Dec 23, 2010
I want to know if it is possible to edit the source code of the programs in Linux. Like, take the calculator for instance. If I want to add a user-defined function to it, how can I do it - if I can do it at all? In general, where and how can I look at the source code of such programs ?
View 3 Replies
View Related