Slackware :: Write Script For Crontab Hdd Operation?

Dec 28, 2010

I have this Maxtor USB external HDD which I mount via dolphin-hal when needed. This HDD has a built in feature to 'sleep' if not used for some time, say 20 min. Now I don't want it to sleep because it irritates me to wait everytime for it to be active for use, so I figured crontab job should fulfill my requirement.

*Edit: I think a script needs to be executed every 15 minutes. The script has to do the following(I think):

Check to see if HDD is conected via USB:
If YES then - Do the below things
If NO - Do nothing

"Below Things":

Check if the ext4 fs is mounted on media/Maxtor-C; if yes then check if any file operation is being performed; if yes-do nothing, if no then write and remove an empty file. if hdd is connected but not mounted then hdparm -z /dev/sdxx (read partitions)

View 7 Replies


ADVERTISEMENT

Fedora :: Write A Crontab Entry Using "crontab -e"

Jul 21, 2011

I was trying to write a crontab entry using "crontab -e"


Code:
0 0 * * * cp /var/log/httpd/domains/mydomain.net.log
/home/admin/logs/mydomain.net.log

crontab is giving me this error:

Code:
"/tmp/crontab.XXXXfMOnRS":2: bad minute
errors in crontab file, can't install.

I've tried a dozen different values for the minute, but it's still giving me the same error.

View 5 Replies View Related

Ubuntu :: Cannot Write To NTFS - Operation Not Supported

Jan 17, 2010

I'm dualbooting XP and Kubuntu on my laptop, and want to move some files from my ext3 part to the NTFS part. Mounting it goes fine, but can't write, create folders, etc. to the NTFS part. Started looking for people with similar problems online and found the guide on this site, so I installed ntfs-config and went through the steps, checking "Enable write to internal device", etc. Still no good. I tried manually putting in the write option on the mount command, no flags comes up but konsole still says "Operation not supported." Dual-booting Vista and Kubuntu Jaunty

View 3 Replies View Related

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

Apr 27, 2010

I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday

View 3 Replies View Related

Slackware :: Deleted Crontab By Mistake?

Oct 24, 2010

I was accessing my box externally (ssh) and accidentally deleted my crontab. I never used crontab before and issued the command "crontab -d" instead of "crontab -e" to edit and add my cronjobpretty useless because I had no back up of my crontab of course First question, is there going to be any direct issue on my box because of the crontab being erased ? (I am assuming so but do not know what type of problems..) Lastly, would I be lucky enough so that there is a way to recover my crontab ? (having gone through Google and whatnote, I doubt it)

View 10 Replies View Related

Slackware :: Setup A Cron Job Using Crontab Entry

May 31, 2010

I am trying to setup a cron job using crontab entry like this 6,16,26,36,46,56 * * * * /usr/bin/fetchmail -k>/dev/null 2>&1 But nothing is happening This is the first time I have attempted using cron as I have settup mutt for my email which is now working great but I would like to have the mail collected every 10 mins The file is saved as mailcron in my /home folder. When i run crontab -l its listed ok but no mail is appearing in mutt.

View 10 Replies View Related

Slackware :: How To Properly Setup Crontab On 13.0 Machine

Dec 3, 2010

I'm running a Slackware64 13.0 machine with the following line at the end of crontab -e:
Code:
@reboot rm -rf /tmp/*
Yet /tmp is not clearing.
This exact same setup is working fine for me on two 13.1 boxes and a -current machine; what gives?

View 5 Replies View Related

Slackware :: Perfection V300 Photo USB Scanner - Fails Citing 'not Enough Space For Operation'

Jul 10, 2011

I've installed the epkowa backend for the V300 scanner. Communications from Chuck56 and Alien Bob were helpful. The core, data, and esci-interpreter packages are installed, epkowa.conf and dll.conf seem properly configured. sand-find-scanner, lsusb, scanimage -L all report correctly. xsane works normally, and iscan initializes, and produces a preview image. scan however fails citing 'not enough space for operation,' although GBs are available. When iscan is closed, these errors are reported:

libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application is running with png.c from libpng-1.4.5
libpng warning: Incompatible libpng version in application and library

My system is running Slackware v. 13.37, Linux v. 2.6.37.6-smp.

View 3 Replies View Related

Slackware :: Crontab - Fetchmail Sends Output To Mail Spool?

Jan 6, 2010

I'm new to mail via the CLI, so bear with me. I have this line in my crontab:

Code:
*/5 * * * * fetchmail
Which does check my mail every 5 minutes fine. But I get the command-line output mailed to

[code]...

View 3 Replies View Related

Software :: Webmin Backup - Error "Could Not Create File" And Another Saying "Cannot Write: Operation Not Permitted"

Oct 25, 2010

I'm setting up a network backup on a workstation here using Webmin. I'm backing up to a local FTP server. I set everything correctly (FTP credentials, directories, etc) but I get an error saying "Could not create file" and another saying "Cannot write: Operation not permitted"

View 1 Replies View Related

General :: Possible Disabling Crontab Job Without Deleting Crontab Description Entry

Jun 23, 2011

is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh

View 4 Replies View Related

Ubuntu Servers :: After Using Crontab With /etc/crontab / Giving Error "can't Find Command Root"?

Aug 26, 2010

I have a question about using crontab with /etc/crontab...

I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).

Originally, my cron job looked like this:

30 * * * * root /my/batch/script &> /dev/null

After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.

So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).

How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)

View 2 Replies View Related

Slackware :: "Set Nickname: Operation Not Supported"

Aug 28, 2010

As I understand the rc.wireless script the command 'iwconfig wlan0 nickname ....' is always executed. On my computer this causes annoying message "Set nickname: operation not supported". I read the man for iwconfig. It seems for me that there are no particular reason to force the 'set nickname' operation.

View 2 Replies View Related

Software :: Scheduling Backup In Crontab When Put This File In Crontab To Schedule The Backup Program It Wont Run?

Apr 9, 2011

I have installed an application manager(monitoring application) on my linux server. Now, i need to have backup schedule for my application. The application itself has executive file to backup database.But when i put this file in my crontab to schedule the backup program it wont run!50 09 * * * root /opt/ME/AppManager9/bin/BackupMysqlDB.sh

View 1 Replies View Related

Slackware :: How To Write Grub In Sl

Jul 21, 2011

I am new to install slackware, i am using scientific linux 6 and first, I don't know how to detect the wireless network and I don't know how to write the grub in my sl, I define the kernel to /boot/vmlinuz, which is a symbolic link, linking to the large single user mode, how can I use different kernels and it's easy to load the kernel but the config file, how should i edit the grub.conf

View 10 Replies View Related

Slackware :: Can 13.37 Write On Win7's NTFS?

Jul 9, 2011

Can Slackware 13.37 write on Win7's NTFS? I'm dual-booting and I've been thinking upgrading to Win7. I need to write to the Windows partition from Slackware and the NTFS-write compatibility will affect my decision.

View 4 Replies View Related

Slackware :: Can't Write To Partition Table?

Jan 19, 2010

I am currently running Linux Mint 8 on a Thinkpad T60p and I decided to free up 20 GB, formatted to EXT4 for Slackware.ed G-Parted)I was able to install Slackware with VirtualBox with my Linux Mint host and I was able to follow through with a full installation without any problems.However when I tried to install it on a real partition I got the below notification: "You will not be able to write the partition table.

Note: Sector size is 2048 (not 512)Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel.Building a new disklabel with disk identifier 0xf4252222.Changes will remain in memory only, until you decide to write them.After that, of course, the previous content won't be recoverable.Warning: Invalid flag 0x0000 of partition table will be corrected by (w)rite"

View 8 Replies View Related

Slackware :: How To Write A Slackbuild Script

Apr 20, 2010

On my ubuntu system when I was editing pdf files I used PDF-ShufflerSo now I wrote a slackbuild script for my slackware 13 (xfce)To be more specific, I dont know how to write a slackbuild script so I try to edit the pyPdf.SlackBuild script, hopefully it works! So I want to give it in public view maybe someone need it some time.

Code:
Homepage:
http://pdfshuffler.sourceforge.net/

[code]....

View 1 Replies View Related

Slackware :: All The Words Are Underlined When Write In Spanish

Aug 16, 2010

kernel 2.6.21.5, GNU (slackware 12.0). KDE 3.5.7.

Suppose I enter a forum where everyone writes in Spanish. When I want to post, the editor, as I type the words, underlines them in red, as if I were misspelling the words. But, if I write an English word, he doesn't underline it. Obviously, he is thinking I'm writing in English.

I suppose the editor is in my system. That is, it is not an editor sent to my machine by the site. Hence, I must have the means of telling him not to care about spelling.

View 6 Replies View Related

Slackware :: Cannot Write To NTFS Or FAT32 Partitions

Mar 22, 2011

I have 13.1 as a dual boot with xp on a 40G hd. There is a 500G hd where I keep all my files, in ntfs format, and I have usb sticks in fat32 and ntfs. When I installed 13.1 I chose read and write access for all users for all of these media. 13.1 will read from them, but will not write to them. How can I fix this?

View 4 Replies View Related

Slackware :: Can't Write To NTFS USB Drive In KDE4.6

May 11, 2011

I installed AlienBob's KDE 4.6.2 a few days ago to give it a shot.

I'm really satisfied with it and wish to keep it, but there's one thing bugging me : I can't write to my NTFS USB drives.

To be precise, I can write as much as I want to existing files, but I can't add nor delete files nor directories.

Worse, root isn't allowed either, even in runlevel 1 when mounted by hand (mount -t ntfs /dev/sde1 /mnt/foo).

Did I miss something to configure among the dependencies of KDE 4.6 ?

Output of /var/log/messages

Code:
May 11 08:37:52 rafale kernel: [46953.570204] usb 1-6: new high speed USB device using ehci_hcd and address 6
May 11 08:37:53 rafale kernel: [46954.274818] usb 1-6: New USB device found, idVendor=1058, idProduct=0730
May 11 08:37:53 rafale kernel: [46954.274821] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[Code].....

View 3 Replies View Related

Slackware :: Install 32-bit 13.1 In VirtualBox - Where To Write The Boot

Mar 23, 2011

I need to evaluate PostBooks, an accounting packages that's 32-bit only,needs PostgreSQL and I only have Slackware 64-bit boxes available, I don't really want to install multilib, so I'm thinking VirtualBox for a quick and dirty (got the DVD, got 32-bit, got PostgreSQL, what the heck). Then I got to wondering -- before I screw something up, do you write to the virtual drive MBR or is there a better way?

View 2 Replies View Related

Slackware :: Can't Write To Encrypted Windows Partition (truecrypt)?

Jan 12, 2010

My Windows partition is using system encryption (preboot authentication) and I'm trying to access it in Linux.I run this command:

Code:
sudo truecrypt --mount --password="MYPASSWORD" --mount-options="system" --fs-options="umask=000" /dev/sda4 /mnt/windows

[code]...

View 2 Replies View Related

Slackware :: Make K3b Write Files With Correct Mask

Jan 14, 2010

I've blown a couple of DVDs trying to burn them with correct file masks (directories and files are read-only). There doesn't seem to be any documentation for K3b (building the index doesn't do squat and the help says "The file or folder help:/k3b/index.html does not exist"). I can't seem to figure out a setting that simply copies everything the "way it is."

View 7 Replies View Related

Slackware :: Write A Script To Switch Between Different Network Configuration?

May 8, 2010

I am running Slackware 12.2.
I have checked the file like /etc/rc.d/rc.inet1.conf, and the command 'ip' or 'ifconfig', but still can not figure out how to write a script to switch between two network configurations easily.

Suppose that one configuration uses DHCP server to dynamically give the ip address, and uses a Default Gateway 1.1.1.1, a net mask 1.0.0.0, a DNS server 1.1.1.0;
and in another configuration the Ip address is fixed, and use a Default Gateway 2.2.2.2, a net mask 2.0.0.0, a DNS server 2.2.2.0;
Anyone would like to give me a hint on how to write one (or two separate) script(s) to switch between these two settings?

View 4 Replies View Related

Slackware :: Read And Write Data Dvds But Cannot Play A Regular Dvd?

Jun 29, 2011

I can read and write data dvds, but cannot play a regular dvd now. I have libdvdcss installed. I am running Slackware 64 13.37 (just installed).

Code:
MPlayer 20101218-4.5.1 (C) 2000-2010 MPlayer Team
Playing dvd://.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading

[Code]...

It can see the drive is there and /dev/sr0 is linked to /dev/dvd and I tried running as root to check if it was a permissions problem but got the same thing.

I have tried lots of different DVDs in the drive, same issue. I even switched out my DVD drive to another old DVD-ROM I had laying around, same thing.

View 14 Replies View Related

Slackware :: Write Udev Rules For USB Hard Disk Drives?

Aug 16, 2010

I just bought a USB hard disk and when I plug it in it gets mounted as owner root and group root. I tried writing a udev rule for it based on the following guide:Nothing seems to work, it always mounts as root. Slackware 13.1, KDE, Dell Optiplex GX280, Western Digital Passport USB 320 gig drive.I am a member of the plugdev group, so it seems to me a rule should not even be necessary.

View 14 Replies View Related

Slackware :: NFS - How To Speed Up Large File/folder Transfer - Write - Speeds?

Dec 13, 2010

About NFS.

Server:

Client(s):

Code:

I have followed Robbie Workmans' HowTo [url]

Reading and writing works absolutely fine with small files but large files are tediously slow in writing to the server. (rw,no_subtree_check) are options in exported directories.

What is your experience with NFS and how can I speed up large file/folder transfer(write) speeds?

View 5 Replies View Related

Slackware :: Allow Normal Users To Write On NTFS External Hard Disk?

Dec 4, 2010

i have installed Salix 13.1 LXDE version (Salix 13.1 is compatible with Slackware 13.1). I must use various external hard disks formatted with NTFS. The hard disks are automatically recognized and mounted with PCmanFM file manager, but only user root can write on them. How can I allow normal users to write on automounted external ntfs drives?

View 3 Replies View Related

Slackware :: Optical Drive Not Identified - Get Permission To Read / Write In The Device

Aug 6, 2010

On one of my machines the DVD/DVDRW/CDROM drive appears as /dev/hdc and is not identified as an optical drive by HAL. It is owned by root: disk and thus no users get permission to read/write in the device (not even those in the cdrom group). This stops playing DVDs, ripping CDs, no notifications appear when a disk is inserted, etc. etc. When I set the permissions for all to read/write from the device then users can access but still no notifications are shown.

On all my other machines the optical drive is identified as /dev/sr0 and is owned by root:cdrom . All have Slack 13.1 . Previously with Slack 12.2 this machine still had the drive in /dev/hdc but the permissions were right (I think because I added it to /etc/fstab with options for users to access it). I believe the problem is down to HAL not setting this drive to the correct group, but how do I fix it? I hate HAL, it has a mind of its own, just like in the scifi movie

View 2 Replies View Related







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