General :: Mailing Newest File In A Directory?

Jan 16, 2010

writing a bash script that looks in a particular directory and emails the contents of the newest file.

View 1 Replies


ADVERTISEMENT

General :: Bash - Finding Newest File In A Directory?

Aug 24, 2010

Basically, I am trying to locate and copy the newest .json bookmark backup in my .mozilla/firefox/w987sdg9.default/bookmarkbackups directory.

I tried this

Code:

ls -t ~/.mozilla/firefox/b1ahb1ah.default/bookmarkbackups/ | head -1

which does return the newest file, but only the filename itself. I found readlink, but I haven't gotten that to output a full path which I can then feed to copy. So, it seems to me that find might work well here, and I know how to find based on absolute dates, but not relative.

View 2 Replies View Related

General :: Rsync N Newest Files In A Directory?

Nov 8, 2010

What would be the easiest way to go about rsyncing the n newest files in a directory to a remote server?

View 2 Replies View Related

General :: E-Mailing Whole Output Of A File With Crontab

May 3, 2011

I have this code that is 'bashed' regularly with crontab and basically it will send me an E-Mail of most of the output but it misses out some of it!

Here is the crontab code to automatically run the script:

Code:

So that sends me an E-mail with most of the output of the following code:

Code:

It sends me everything up to echo "*******" "Begin compressing and transferring files" "*******" but it wont output the tar bit.. so it should give me a list of files that have been tarred.

View 1 Replies View Related

General :: Shell Command To Find Newest File In Filesystem?

Apr 13, 2010

I'm relatively experienced with UNIX and Linux, but this has me thrown for quite a loop, and it seemed like such a simple question. How would I go about finding the newest file in a file system? I thought something like:

Code:

ls -ltr `find /usr -type f`

would work, but I seem to be exceeding the argument maximum for ls:

ksh: 0403-029 There is not enough memory available now

I thought something involving xargs might work, but I really suck with that command.

View 3 Replies View Related

Red Hat :: Command Fro Attaching File While Mailing?

Dec 21, 2010

How to send an ordinary file as well as an Excel file as an attachment while sending mail in redhat.

View 5 Replies View Related

General :: Getting System Administrator Mailing Lists?

Mar 3, 2011

does any linux admins out there have any mailing lists that they subscribe to? I go to lots of sites for knowledge but i was trying to put together the double whammy and pull together a solid mailing list for linux admins as well.

View 6 Replies View Related

General :: Creating Mailman Mailing Lists On OpenSUSE?

Jan 30, 2011

how to create a mailing list using the 'newlist' command in /var/local/mailman/. I sucessfully create the list and i receive a confirmation message but after adding members to the list, none of them receives mail sent to list.

View 1 Replies View Related

General :: Mailing List - Broadcast Email To Every Member

May 26, 2010

I am new to Linux and we want to broadcast an email to every member of our institution. Currently we have more than 150 email addresses and 2 email lists. The mail server is running on Redhat version 5, x86_64/i386

View 2 Replies View Related

General :: Unable To Access File /home/username/.iceauthority: No Such File Or Directory

Apr 21, 2011

Can't log into my XFCE desktop like I normaly do. all the sudden I get notified that my xsession lasted less then 10 secondsLooking at the error I can see this:

Unable to access file /home/username/.iceauthority: No such file or directory

Using failsafe I can start a terminal. From terminal I tried to start X

Code: sudo startx Result: Running on desplay:0

So I tried to run this;

Code: sudo startxfce4 And I get up a graphical desktop.

So this is not a critical situation as I easily can use this method to log on, but as there has been something causing this I would like to be able to resolve this nonetheless. Btw it is not the old chmod trick in play here, cause my .iceauthority file is gone alltogheter.

View 6 Replies View Related

General :: 6.13 GMP-5.0.0 LFS Make Error - Cannot Open Shared Object File: No Such File Or Directory

Jun 10, 2010

I'm currently stuck at 6.13 GMP-5.0.0 of the LFS installation. After running make, I receive the following:

error while loading shared libraries: libbfd-2.20.so: cannot open shared object file: No such file or directory
make[2]: *** [libmpn.la] Error 127
make[2]: Leaving directory `/sources/gmp-5.0.0/mpn'

[code]....

View 5 Replies View Related

General :: Libgtk-x11-2.0.so.0: Cannot Open Shared Object File: No Such File Or Directory

Mar 28, 2010

I'm trying to install PCSX2 (PS2 emulator) and I get the following error: ./pcsx2: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

I've followed the instructions here http://pcsx2.net/downloads.php and believe I have all the dependencies installed. My system has the following file:

/usr/lib/libgtk-x11-2.0.so.0

View 6 Replies View Related

General :: Changing Directory - Saved File On The Desktop - Cannot Seem To Get That File To Execute It

Mar 10, 2011

I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:

I try cd Desktop says that there is no such directory.

I tried /home/me/Desktop same thing.

View 5 Replies View Related

Software :: Get First File Of Directory Then Copy To Other Directory Andd Rename The File?

Jan 30, 2011

I want to do the following.

1. have a directory full of subdirectory

2. Pick the first file from every sub and copy that to the main directory and also rename that file to the same name as the subdirectory's name

3. need to work in commandline best is a simple script.

View 4 Replies View Related

General :: How To Install G++ 4.0.2, Already Have The Newest One

Apr 1, 2010

How can I install g++ 4.0.2, already have the newest one. but one of my make files says it needs 4.0.2.

View 2 Replies View Related

General :: Extracting Tar File: Cannot Open: No Such File Or Directory?

Jul 19, 2010

I have a remote Debian 5 machine on which I'm trying to extract a tar-file (Django 1.2.1, but that's unimportant). The first 1300 or so files extracts just fine (of about 2800 in total), after which errors liketar: Django-1.2.1/tests/urls.py: Cannot open: No such file or directoryshows up for the rest of the files, finally ending up with atar: Error exit delayed from previous errorsI use the commandtar xzvf Django-1.2.1.tar.gzI've also tried with sudo (but I'm extracting in my home directory, which I should obviusly have permissions to use without). I've tried gunzipping first (runs flawlessly) and then running tar xvf, but to no avail. I've fetched the file using wget:

View 1 Replies View Related

General :: Delete All But 10 Newest Files?

Apr 8, 2011

I'm trying to keep a directory full of log files manageable. Nightly, I want to delete all but the 10 most recent. How can I do this in a single command?

View 2 Replies View Related

General :: Rsync Only Newest N Gb Of Files?

Jul 27, 2011

I have two directories, dirA whicht contains N gb of data and dirB which is supposed to contain only the newest M gb of data from dirA. When files are added to dirA, they sould also be added to dirB, while the oldest files in dirB should be deleted.Is that possible with rsync? or any other software?

View 1 Replies View Related

General :: Cant Compile The Newest Kernel?

Dec 11, 2010

Recently i downloaded the stable version of kernel from kernel.org then i extract the tarball to /usr/src path , then after i complile the kernel for fuse and ext4 modulescommand which i use is mention below

[root@localhost linux-2.6.36.1]# make menuconfig
[root@localhost linux-2.6.36.1]# make
[root@localhost linux-2.6.36.1]# make modules

[code]...

View 2 Replies View Related

General :: Dual Boot \ Currently Downloading The Newest Version And Want To Be Able To Run Both?

Feb 19, 2010

but anyway I have a lot of stuff on my Laptop (I am currently using) and I am using Windows Vista, but I want to, I think it's called dual boot, where I can use both Linux and Windows. The only thing is, I am not entirely sure how to do this, I used to have it done on one of my other Computers, but I forgot how I did it, I am currently downloading the newest version of Ubuntu and I want to be able to run both.

View 1 Replies View Related

General :: Delete All Files (except The Four Newest) Throughout Directories Using A Bash Script?

Aug 16, 2011

I'm looking for a Bash script that will go into a list of directories and delete all but the four most recently created files.

How can I do this?

View 4 Replies View Related

General :: '/etc/x11': No Such File Or Directory

Mar 13, 2011

the contents of the folder could not be displayed Error stating file '/etc/x11': No such file or directory

View 2 Replies View Related

General :: Usb.h: No Such File Or Directory

Jul 6, 2010

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <usb.h>
int main(int argc, char **argv){
struct usb_bus *bus;
struct usb_device *dev;
usb_init();
[Code]....

I am compiling this code gcc libusb.c -o libusb -lusb but it saying error as usb.h: No such file or directory

View 3 Replies View Related

General :: Get Socket.h Header File / Copy Pasting This Header File In 'incl' Directory Allow To Use It In The Program?

Apr 22, 2011

where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?

View 1 Replies View Related

General :: Extract A Zip File To Own Directory?

Apr 21, 2011

Im trying to extract the contents of a zip file but I want to extract it to my own directory. I'v tried -d from unzip but that just puts the contents of the zip into that directory.

But I want to extract the contents of the first (root) directory in the zip if there is only one directory in the root of the zip else just extract the files/folders in the root of the zip file (if there are more then one files).

e.g. test.zip contents the following dir structure:

test.zip
/app_v1/ <-The contents of this directory I want extracted to a dir of my choice
- folder-1
- folder-2
- folder-3
- folder-4
- file1
- file2

View 2 Replies View Related

General :: Unzip Only 1 Directory In .zip File?

May 6, 2010

trying to unzip only 1 directory in my .zip file, the reason is that i don't have enough space to unzip all the contents of .zip file. and i am trying to do it with unzip command.

View 4 Replies View Related

General :: Executing File Of Some Other Directory From PWD

Jan 14, 2010

My present working is
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/demo/c++ #
Now I want to run "python scons/scons.py" located in
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/ #

I tried
Code:
../../python scons/scons.py
From the above stated PWD but it resulted in the following:
Code:
bash: ../../python: No such file or directory
What is the way to execute a file of some other directory from the PWD!

View 14 Replies View Related

General :: Error - Su: No Such File Or Directory

Jul 21, 2011

If I type su, it gives me following error su: No such file or directory

View 5 Replies View Related

General :: Cat:/tmp/ts/session Not Such File Or Directory

Sep 20, 2010

While thinstation is booting from localdrive then the shows repeatedly error displays after line welcome to thinstation cat: /tmp/ts/session not such file or directory even that i have kept file in loclal derive thinstation.profile/thinstation.conf.user

View 1 Replies View Related

General :: Creating A .txt File In A Specified Directory?

Apr 26, 2011

I have create a perl script, which create a text file, and it works well. But i want this to create in a specified directory.

THe scrip is:

Code:
#!/usr/bin/perl
use POSIX;
#Directory where the text file will be created.
$directory = '/space/data';

[Code]....

View 14 Replies View Related







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