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


ADVERTISEMENT

General :: Perform Root Level Tasks While In GUI?

Oct 5, 2010

There must be a way to perform privileged tasks in the Gnome desktop (or actually Nautilus, I guess)...similar to using SUDO in a terminal window.

For example I want to change the rights to a file, but Nautilus tells me I can't because I'm not the owner.

View 8 Replies View Related

General :: Security - Let Any User Perform Administrative Tasks On A System Irrespective Of His / Her Privileges On That Particular System?

Sep 26, 2010

I often get responses from people who first say: "Are you sure? You want your network to be exposed to the outside world?" I am not experimenting on a Production Server of NASA or any Security Concern Department. Friends, there is no harm in experimenting on your personal computer or on a test computer which is isolated from the production environment. Look at hackers! What do they do? If they don't know how security is breached then how would they come up with security measures?

If my question reads... "How to let any user perform Administrative Tasks on a Linux System irrespective of his/her privileges on that particular system?" then I would not get the right answers in the first place. They will say... "You are letting everyone destroy your system... are you sure you want to do that?" My question is: Why should we restrict ourselves from experimenting even if it sounds weird to other people?

I give you an example where it is desirable to let an unprivileged user perform certain tasks. You want to know if there are any employees in your office who are storing videos in their home directory and filling up the disk space to a great amount. You have a department called "Command Center or Data Center Operations or Help Desk" call it whatever you would, whose work is to monitor such activities, and you create an account "monitor" for them to monitor such activities but they are not able to do them:

[Code]..

View 8 Replies View Related

Ubuntu Installation :: Couldn't Download All Repository Indexes / Unable To Perform Many Tasks

Jan 8, 2010

Could not download all repository indexes.The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.and therefore i am unable to perform many tasks.this is a clean install of 9.10 on a brand new laptop

View 5 Replies View Related

Ubuntu :: Trying To Write Script To Perform Tasks Number Of Times Depending On User Input?

Apr 13, 2011

I'm trying to write a bash script with a for loop that will perform two tasks a number of times depending on the number the user enters at the start. Here is what I got so far. It works fine the first time but then it just exits with no error msgs. The problem is in the way I have written the loop command. I have searched the web for examples to find out what I'm doing wrong with no luck.

#!/bin/bash
declare -i Num=1
declare -i Strnum=8

[code]....

View 3 Replies View Related

Ubuntu Installation :: Allows To Install/remove Software And To Perform Other Package Management Related Tasks?

Jul 14, 2011

I added a code into terminal and restarted, then I tried to install Java and this came up.'There seems to be a programming error in aptdaemon. This is the software that allows you to install/remove software and to perform other package management related tasks.'

PHP Code:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 961, in simulate

[code]....

View 1 Replies View Related

Security :: Created A .htaccess File In The Folder And Added AuthType Basic?

Jan 26, 2010

I have a folder on my server i want to protect with http authentication but i have problem. i created a password htpasswd -c .htpasswd razzera

then i created a .htaccess file in the folder and added
AuthType Basic
AuthName "Restricted Files"
# (Following line optional)
AuthBasicProvider file
AuthUserFile /.htpasswd
Require user razzera

but when i go tho the folder it wont request any login details. why ??

View 6 Replies View Related

Ubuntu :: Login Password Ok, But Password To Perform Admin Tasks Not Working?

Apr 23, 2010

I thought these were the same password?In-fact, they WERE the same password on the set-up I currently have.But now, weirdly, I can log in fine but I the exact same password is not using in order to perform admin tasks.I've tried a recovery mode, console, and then "password (username)" in order to reset the password.This does reset the password I need to use to log in, but the password still does not work for performing admin tasks

View 4 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

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

General :: Routes Are Not Added As Defined In Rc.local File....why?

Jan 24, 2010

I need to setup my ubuntu pc single nic card ip as 192.168.1.6 for internet and 10.172.170.95 and 135.10.86.100 for my lan and for another network through my 4port DSL modem.So i defined like this.Except addition of last two routes(10.0.0.0/8 & 200.200.176.0/24) everything worked as defined, what is the mistake i did?

In /etc/network/interfaces file

auto lo
iface lo inet loopback[code]............

View 1 Replies View Related

Ubuntu One :: Newly Added Files To Folder Not Synching

Jan 7, 2011

I was able to synch my folders to Ubuntu One.However, when I add any new files to one of the synched folders, it is not synching up to Ubuntu One. I've tried re-synching the folder where I place the file and all I get is the circular arrow with the ! in it. I've also tried disconnecting and connecting in the Device tab on "Ubuntu One Preferences". Am I missing a procedure here or is this a bug? I would hope that adding, removing, or updating files would automatically be synched.

View 1 Replies View Related

Ubuntu :: Put Newly Added And Unwatched Video Files Into A Folder?

Feb 28, 2010

I'm looking for something in Ubuntu (o Linux) that would put newly added and unwatched video files into a folder.

View 1 Replies View Related

Programming :: Is PHP Suitable For File And Database Tasks?

Feb 20, 2011

According to Wikipedia's PHP page, PHP "is a general-purpose scripting language". Does that include being suitable for duplicate files detection? More specifically, the task is collating files from workstation backups into a single place, preserving directory paths and replacing duplicates with hard links. This will be a regular task on a lot of files so performance is important; our current proof-of-concept solution uses a PostgreSQL database of file "fingerprints" to speed duplicate detection. Does PHP have PostgreSQL integration?

I am asking these questions as a follow-up on an earlier thread asking for programming language recommendations for this task. Since then I have learned that PHP skills are available locally.

View 8 Replies View Related

Debian :: What Is The Best Way To Perform A Backup / File Transfer

Jan 21, 2010

I have a couple of Lenny LAMP servers, and a backup server. (virtual testing environment)

1. What is the best way to perform a backup? (system state as well as individual files) Although system state can also be accomplished through the hypervisor.

2. Between Windows computers, I access shared directories simply by \hostnamesharedmap or \host_IPsharedmap. Between Windows and linux i use SAMBA. But there must be a simple way to copy 2 files between linux hosts?

3. I've searched a lot, and only found people with the same question without a good answer: is there a linux equivalent for robocopy?

View 8 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 Installation :: Set The Kernel Parameters To Perform An Unattended Install Using Preseed File?

Oct 23, 2010

I would like to create an unattended install ubuntu 10.10 cd. I have followed the ubuntu [URL].. on creating the preseed file, however, I can't find any useful tutorial on how to set the kernel parameters to perform an unattended install using my preseed file.

View 1 Replies View Related

OpenSUSE :: File Dialogs Do Not See New Added Files

May 1, 2011

This has been bugging me since I upgraded to 11.4. First I noticed that most of the time when a file is copied from an application (say, downloaded from Firefox) in to a directory that Konqueror does not show the new file until I hit "Reload".OK, I could live with that, annoying as it is. Why it can't recognize that a new file has been added to the directory since the last display refresh when I switch to that window I don't know, but fine, whatever.

Then I installed Firefox 4.0 - and now frequently when I open the "Save As" file browse dialog, it doesn't see any of the files recently added either. I put in a complaint to Mozilla, but apparently only ONE other person on the planet has ever seen this happen. But it was never the case before, either in earlier Firefox or earlier openSUSE releases. I was always able to see the files I previously saved to that folder when saving a new one.

And today it happened in Kaffeine which I don't remember ever seeing before. I opened the "Open File" dialog and it couldn't see a video file I had just downloaded. When I closed Kaffeine and then restarted it, it could see it.Is this something that has been ongoing or is it new? I can't find anything via Google Search to explain it. Is there some setting somewhere that needs to be tweaked? Is it a file system problem?

View 3 Replies View Related

Ubuntu :: Can A File Be Added To The Places Menu

Jan 20, 2011

wondering if it's possible to add a link to a file in the Places Menu? for example a link to a Writer file I use a lot. I see how to add folders, but is it possible to add files?

View 9 Replies View Related

Software :: Added An Cc File To An Tcl Script And Compile

Feb 11, 2011

im nirmal r ..i have installed ns2 in redhat 5.i have added an cc file to an tcl script and while compiling the make in terminal it shows me like this..(i have tried to enable the propertise but i con't)

[Code]....

View 1 Replies View Related

Ubuntu Multimedia :: Arista- Nothing Happens When File Is Added To Queue

May 25, 2010

I just downloaded Arista to convert avi's to mpegs for DVD's and also to view on a mobile device.I add a file "movie.avi" as the source and device as DVD and then click "add to queue" and the file appears in the queue but nothing happens.Also I believe that I have now downloaded all of the necessary gstreamer packages including the ugly multiverse.

View 2 Replies View Related

Ubuntu :: Iso File Extraction - Go Through 3500+ Rom Files And Delete Added ;1 To Nes Extension

Aug 15, 2010

I downloaded an ISO of some nes roms and used the archive manager to extract the files. It extracted them but it added a ;1 to the end of the extension. I don't want to go through 3500+ rom files and delete the added ;1 to the nes extension. How can I prevent this in the future?

View 3 Replies View Related

General :: Automate Tasks In Linux

Feb 10, 2011

I'd like to get the information about automatization of the tasks in Linux, more specifically in Fedora with minimal installation (without graphical interface and so on).The application (developed in C) needs to be started automatically when the computer is initialized. I've read about cron but I guess it's not a solution in this case because whenever computer starts the application must run once.I also have read about the/etc/ rc.local file but I made some tests changing it and they didn't work, the computer starts asking me the login and password but nothing run after that.The inittab was the same. In this way, someone know how to initialize an application developed in C when the computer starts?

View 6 Replies View Related

General :: If Statement With Multiple Tasks?

Feb 2, 2011

I want to have an if statement that does multiple things:

Code:

if [....] ; then
1=...
2=...

[code]....

View 3 Replies View Related

OpenSUSE :: Updated To 11.4 [64 Bit] - Rkhunter Is Giving Warning: User 'rtkit' Has Been Added To The Passwd File

Mar 13, 2011

i have just updated to openSuSE 11.4 [64 bit]; rkhunter is giving these Warnings :

Warning: User 'rtkit' has been added to the passwd file.
Warning: User 'pulse' has been added to the passwd file.
Warning: User 'statd' has been added to the passwd file.
Warning: Changes found in the group file for group 'audio': User 'pulse' has been added to the group
Warning: Group 'rtkit' has been added to the group file.
Warning: Group 'pulse' has been added to the group file.
Warning: Group 'pulse-access' has been added to the group file.
Warning: Suspicious file types found in /dev: /dev/shm/initrd_exports.sh: ASCII text
Warning: Hidden directory found: /dev/.sysconfig
Warning: Hidden directory found: /dev/.mount

Do these look Normal, Are these False-Positives??

View 4 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







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