General :: Use Of Placing Any File In /etc/cron.d Folder?

Mar 23, 2009

what is the use of placing any file in /etc/cron.d folder , is there any use of it ? will crond daemon run the files automatically which are placed in /etc/cron.d daemon ?

View 1 Replies


ADVERTISEMENT

General :: Creating A Cron File And Script?

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

General :: Cron Job - Display A Jpg Image File?

Jul 25, 2009

I am a windows user and am trying to display a jpg image file on linux every x hours.In Windows, if I were to perform the same task, I would just give out the path to schtasks.exe and it would open the image in the default viewer,is the case same with linux as well? Do I just execute:

crontab now + 1 hour abc.jpg ? The linux is OpenSuse or Debian I guess.

View 2 Replies View Related

General :: Cron / Crontab - Do Not Edit This File

Mar 19, 2011

I am trying to have the files from /user/directory copy every hour to /backup/user/directory. It would seem that cron or crontab is what I need to use. Looking at previous posts and other documentation only shows how much I don't know. When I type crontab -e I get a blank file I can type into, seemingly using vi as the editor. I have no problem with that but when I type cron -l, I get my text after a message about "Do Not Edit this File". What I am reading just makes no sense, I am not understanding even the most fundamental aspects of cron or crontab. Where I can get the most basic of basic instructions to try to understand this function?

View 4 Replies View Related

General :: Cron - Mysqldump Job Creates An Empty Sql File

Apr 14, 2010

My cron job is executing the below mysqldump command but it produces an empty sql file. However, when I run from the command line, it works as expected.

Code:
15 6 * * * root mysqldump -uroot -pXXXXXXX mydbname | gzip > /home/dbbackup/db_`/bin/date +\%Y\%m\%d\%H\%M`.sql.gz

I'm on CentOS 5.4 and use "env EDITOR=nano crontab -e" edit my cron (then paste the above command.

View 5 Replies View Related

General :: Cron To Remove All Files Within Directory Except One File?

Jun 28, 2010

I would like to create a cronjob that will delete all files within a directory 1 hours after it is created to the folderI found this cron find /path/to/file/* -ctime +1 -exec rm {} ; but it's deleted all files.I want to make an exception, all file should be deleted except one file (letsay file a.zip)

View 16 Replies View Related

General :: Create A Cron File That Will Regularly Perform?

Jul 30, 2011

Will this:

* * 1 1-12 * #dump -0uf /dev/st0/
* * * * 0 #dump -2uf /dev/st0/
* * 2-31 * 1-6 #dump -5uf /dev/st0/

answer this question?How to create a cron file that will regularly perform the following backups:a. Performs a level 0 backup once per monthb.Performs a level 2 dump one day per weekc.Performs a level 5 dump every day that neither a level 0 nor a level 2 dump is performed. If not, I'm I close? This is homework, so I don't want a direct answer

View 14 Replies View Related

Security :: Encrypt Folder So It's Accessible To Cron?

Jan 5, 2011

I have a script that crond runs each night. The script pulls some sensitive files from an SFTP server and stores them in a folder on the local machine.I need to encrypt those files on the filesystem. Ideally, I could encrypt the folder they're stored in to require a password whenever the files are accessed. The problem is that then crond wouldn't be able to access the files. Using something like ecryptfs would allow the cron script to mount the encrypted storage by supplying the password, but now the keys to the kingdom are just sitting in a cron shell script.

Is there a good way to approach this? One thought I had was finding a tool that lets cron encrypt the files using a public key, then require a password to decrypt them (silently using the password to access the related private key)I don't want too much complexity on the decryption side, because I will have relatively non-tech people needing to access those files occasionally.

View 6 Replies View Related

General :: Create A Cron File That Will Regularly Perform A Level 0 Backup Once Per Month?

Mar 3, 2011

How do you create a cron file that will regularly perform a level 0 backup once per month?

View 2 Replies View Related

OpenSUSE Install :: Mount - Run Cron To Backup Home Folder?

Jan 4, 2010

I installed a second HD, and formatted it to ext4. I gave it the "/backup" label. I am trying to figure out how to mount it so that I can run cron to backup my home folder onto it once a week. This is what the fstab looks like now

[code]...

View 9 Replies View Related

General :: File Privileges - Check And Set Who Can View Or Open A Given Folder Or File?

Jul 30, 2010

How can I check and set who can view or open a given folder or file?

View 1 Replies View Related

Ubuntu :: Kde 4.5 - Move A File Or Folder Into Another Folder, All The Icons Arrange Back To The Left Side

Sep 14, 2010

When I position icons on the desktop in specific places, then I choose to move a file or folder into another folder, all the icons arrange back to the left side. This happened in an earlier version of KDE 4.x, disappeared the next version, and reappeared. how to keep this from happening. It makes using the desktop a pain in the you know what.

View 2 Replies View Related

Ubuntu :: Drag File/Folder To Taskbar Button Creates Launcher, Not Bring Folder To Foreground?

May 20, 2011

After upgrading to 11.04, I noticed something strange, being that when I want to drag a file or folder from one Nautilus folder window to another which is not visible, I can no longer hold the item over said folder's taskbar button and wait for it to appear. It just shows the + for copy, and when I let go (which I have no choice but to eventually do), it creates a launcher to that item (I assume it's doing that, and not actually copying there, but the + has me unsure).

I've looked in Nautilus's preferences to see if this is some new behaviour that I can revert back to, but could find nothing there.

I'm of course using the Classic desktop with bottom panel being the taskbar. If you know how I can rectify this, please let me know, as the times I would want to create a file or folder launcher without the usual hassle would be rare, but I am constantly dragging stuff from one folder to another, and it would be a real pain to have to line up source and destination folders each time.

View 4 Replies View Related

Debian :: Create Folder From Filename And Move File Into Folder

Feb 13, 2011

this is posable but am trying to do this "Create folder from a filename and move the file into the folder" i have 500000+ file's i need to do with is there a easy way?I really don't want to download them all make/move them with filemonkey just to re-upload them

View 2 Replies View Related

Software :: Build File Or Folder Missing In Modules Folder

Apr 14, 2009

i am trying to install a driver for my belkin wireless usb adapter but when i type make it says cannot find lib/modules/<debian version>/build so it does not configure the sources.

View 1 Replies View Related

General :: Insert A Folder Into A ZIP File?

Aug 11, 2011

I'm a newbie on Linux and had to do something like this with the zip command:

My folder structure inside a zip file abc.zip is code...

It would move into abc.zip as folder3/textfile.txt (the hierarchy preserved)
Also used a -j switch (help said it junked the path info and it did but) - it would move only into abc.zip and sit at the same level as folder1 and folder2 instead of replacing the textfile.txt within abc.zip/folder1

My question is - I want to replace the abc.zip/folder1/textfile.txt with the one inside seconddir/folder3/textfile.txt.

How do I achieve this via the command line interface?

View 3 Replies View Related

Software :: Copy A File Or Folder In Some System Folder?

Dec 1, 2010

When i want copy a file or folder in some system folder like sbin,Etc.show me error about privilage but when I'm in console i use su command for become admin and i can copy my file or folder.in other operation system like windows user can copy anything,i want know for direct copy my folder in linux without console what should i do? i must join my user name in root group?

View 4 Replies View Related

General :: Get File / Folder Size With SSH On System?

Jun 22, 2010

I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it?

View 2 Replies View Related

General :: Create Folder Name From The Text File?

Jun 23, 2010

1. I need guide on how to create a folder name from the text file with .txt format.

2. First, I call the function of reading the directory.

3. Then, I dont know how to do.

4. Finally, I close the directory

This is my source code in perl

## read text.txt file ##
open F, "from/$directory/text.txt";
read F, $buf, 9999;
close F;[/size]

This source code is used to print the folder with date format like "ddmm" d stands for day and m stands for month

if ($command =~ s/-O "(.*)"/-O "$websites/$month/$file"/)

Instead, I want to have the name from text.txt to be folder name

View 4 Replies View Related

General :: Determine The Size Of Each File In A Folder?

Nov 30, 2010

i have a folder with 10 files and i would like to determine the size of each file. i was trying the command

Code:

du -sh foldername

but i receive the total size .

View 5 Replies View Related

General :: Deleted File / Folder Recovery

Feb 19, 2011

I have just accidentally deleted some files and a folder.Is there anyway I can recover them.

View 1 Replies View Related

General :: Install Tar.gz File In Download Folder?

Aug 24, 2010

I have a voip program downloaded. It is in tar.gz format. It is in my home/download folder. How to install that?

View 6 Replies View Related

General :: Show The Number Of File On Folder?

Oct 21, 2010

My folder have some files and I want to show the number of files on folder at "Total file on folder: " Ex: Monday folder have six files and it will show "Total file on folder : 6" when I run a script. This is my code :

#!/bin/sh
if [ -d /home/kenzo/Monday/ ] && {
echo "Monday"
ls -l /home/kenzo/Monday/

[code].....

View 2 Replies View Related

General :: Wine File Or Folder Does Not Exist

Nov 19, 2010

I want to install kindle in kubuntu. I seem to have successfully installed wine and and added ms explorer.exe. but when I click on Browse C drive...
Unable to run the command specified. The file or folder file:////Documents/.wine/dosdevices/c: does not exist.

View 1 Replies View Related

General :: Changing File And Folder Ownership From Root?

Oct 11, 2010

I created a folder structure as root and now need to transfer ownership to an ordinary user.

This question is linked to this one - [URL]

I have a folder /srv/app-share that needs to be visible/writeable to user1

I tried (as root):

root@server [/]# chown -R user1:user1 /srv/

But that did not work.

View 1 Replies View Related

General :: In Folder Hierarchy / Find Last Updated File

Jun 2, 2011

I have a folder hierarchy with many sub-folder levels under a set of parent folders. Based on the application design and business use, files are written to different locations on a daily basis. I want to find out the last updated file in the folder structure and its location at any given time. How can I do that?

View 2 Replies View Related

General :: Move File And Folder Date Stamps?

May 7, 2010

I wrote this little script and I need some help, I am trying to achieve following:Every day I receive new file in the /home/denis/MyData/ folder and I don't know what the file mane will be but I want to move any file that arrives there to the new location /media/DataBackup/Linux/backup/ (media/DataBackup/ is external 500GB USB drive)to automatically create new folder with the date and time stamp every day and then to move content of the /home/denis/MyData/ into the new folder with current date stamp. So every day there will be new folder and will contain files for that day only.My script is as follows:

cd /media/DataBackup/Linux/backup/
mkdir MyData_$(date +%Y%b%d_%HH%MM)
#this creates file MyData_current date and time

[code]...

View 3 Replies View Related

General :: Perform Some Tasks When New File Is Added In Folder

Feb 21, 2011

I have a folder named "logs" which contains log files. I would like to have a bash script or a cron job or something like this which will check the folder continuousy and perform some tasks (for example echo "New file is created") every time a new file with pattern like "Screen.log.***" is created in the folder "logs"
Is it possible in Linux?

View 14 Replies View Related

General :: Perl Script For Latest File From Folder

Jul 31, 2009

i want to get the latest file name from a directory, how can i do with perl script. In other words, how to sort the contents of a folder on the basis of time and capture the latest file using perl script,

View 6 Replies View Related

General :: File Permission And Shared Folder In Virtualbox

Feb 6, 2011

I have virtualbox installed, and arch set up as the guest OS now i have made my home folder shared folder with the guest OS but at first my arch couldnt read my home folder.i realized the permission setting for the home folder is set as rwx to myself, and nothing to everyone else.so i chmod -R 755 to everything and that seemed to have solved the problem now i want to make my home folder readonly to my guest OS. do i just do chmod -R 744 to my home folder? i already messed up something when i set 644 to everything in my home folder, as my dropbox stopped working so im afraid of something like that happening to me again, otherwise i d love to experiment

another question is, are .so files supposed to be executable? I googled it, and it seems they dont have to be.But my dropbox stopped working after the .so files in /home/myhomefolder/.dropbox got assigned 644 D:

View 2 Replies View Related







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