Sponsored Content
Top Forums Shell Programming and Scripting script to find latest executable in particular directory and start that particular ex Post 302137278 by kvineeth on Monday 24th of September 2007 06:17:33 AM
Old 09-24-2007
hi radoulov,

Could you briefly explain what the script is doing?

i tried running the script which u gave...it gave me the foll errors.....

eaton@ubuntu:~/vineeth/file_handling/executable$ set -- home/eaton/vineeth/file_handling/executable;[[ "$1" != "$prev" ]]&&./"$1";prev="$1"
-bash: ./home/eaton/vineeth/file_handling/executable: No such file or directory
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script to find latest date and time of the files

Hi everyone, Please help:) I have a list of 1000 different files which comes daily to the directory.Some of the files are not coming to the directory now. I need to write a shell script to find the latest date and time of the files they came to the directory. The files should be unique.... (1 Reply)
Discussion started by: karthicss
1 Replies

2. UNIX for Dummies Questions & Answers

Script to find a string in a directory/sub-directory

I'm trying to find this string 'preparing string IBE_Quote_W1_Pvt.SaveWrapper for quote_header_id’ in my Apache log file directory. The log file that contains this string may be in a parent direcotry or a sub-directory. I have tried 'grep' and 'awk' with no success. I would like to get the path... (3 Replies)
Discussion started by: gross
3 Replies

3. Shell Programming and Scripting

script to find filenames with latest version and for all seq. numbers in a day

Hi, We have a requirement to find the set of filenames from the group of files in a specified folder based on (i) version number (ii) sequence number such that, for any given sequence number in a day only the latest version filenames have to indentified. Below is the format of... (4 Replies)
Discussion started by: Deepakbabu
4 Replies

4. Shell Programming and Scripting

Move the latest or older File from one directory to another Directory

I Need help for one requirement, I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix. Example: Source Directory : \a destination Directory : \a\b File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt) File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies

5. Shell Programming and Scripting

find the latest files in multiple directory

I want to get the latest files from multiple directories, d1, d2,d3 and d4 under the parent dierectoy d. can anyone help out with this? thx (3 Replies)
Discussion started by: shyork2001
3 Replies

6. Shell Programming and Scripting

Find the latest directory and loop through the files and pick the error messages

Hi, I am new to unix and shell scripting,can anybody help me in sctipting a requirement. my requirement is to get the latest directory the name of the directory will be like CSB.monthdate_time stamp like CSB.Sep29_11:16 and CSB.Oct01_16:21. i need to pick the latest directory. in the... (15 Replies)
Discussion started by: sudhir_83k
15 Replies

7. Shell Programming and Scripting

Script to move latest zip file to another directory

Hi folks, In my application there is a job running which create a .dat file along with it zip file also at unix box location /opt/app/cvf/temp1 so in temp1 directory I have one .dat file and its zip file also. Now since this job runs every day so if a job runs today there will be two files... (5 Replies)
Discussion started by: punpun66
5 Replies

8. UNIX for Dummies Questions & Answers

To find the latest modified file in a directory

I am trying to fetch the latest modified file from a directory using the command find . -type f -exec ls -lt \{\} \+ | head | awk '{print $9}' After the O/P, I get the below mentioned error and the command doesnt terminate at all. find: ls terminated by signal 13 find: ls terminated by... (2 Replies)
Discussion started by: Sree10
2 Replies

9. Shell Programming and Scripting

Help with korn shell script to get the latest file versions in a directory

I want to write a korn shell script to get the latest three versions for a file in the directory having lot of files with various versions (files with prefix as same but time stamp as suffix) and compress it and at the same time have to remove the remaining versions of the file (other than latest... (4 Replies)
Discussion started by: maheshbabu
4 Replies

10. UNIX for Dummies Questions & Answers

Find exit with success with non executable directory

Hi there, I'm quite surprised by the following behavior of find. $ find -ls # I have a directory and a file in it 8145 4 drwxr-xr-x 3 me me 4096 May 10 09:36 . 87 4 drwxr-xr-x 2 me me 4096 May 10 09:36 ./dir 88 0 -rw-r--r-- 1 me me 0... (2 Replies)
Discussion started by: chebarbudo
2 Replies
EFINGERD(8)						      System Manager's Manual						       EFINGERD(8)

NAME
efingerd - another finger daemon for linux SYNOPSIS
efingerd [-t X] [-f] [-n] [-u] [--help] [--version] efingerd should be run from inetd. DESCRIPTION
efingerd is another finger daemon, giving you complete control over what are you going to display about your computer. OPTIONS
--help Show summary of options and exit. --version Show version and exit. -t X Lifetime for spawned services (in seconds) ex: -t 25 maintain connections for up to 25 seconds (default: -t 60) -n Do not lookup addresses, use IP numbers instead -f Do not display users' full names. -u Ignore user-specific .efingerd file USAGE
If you are just an ordinary user and efingerd is already installed by your friendly administrator, you can take the advantage of it by mak- ing executable .efingerd in your home directory (it can be anything - from single shell script to a program in super-hyper-extra-object oriented language - only speed makes a difference). This program takes two arguments, the first is the name of remote user fingering you (or (null) if his/her/its system does not run ident), the second one is address of his computer (or ip number, if efingerd is installed with option -n). Standard output of this program is then displayed to the person fingering you. Look at examples/.efingerd for a nice example. Following executables are providing information about your machine to the fingerer: /etc/efingerd/list what to display when somebody does finger @your.machine /etc/efingerd/luser what to display when somebody fingers user on your machine, and the fingered user does not have ~/.efingerd file /etc/efingerd/nouser what to display when somebody fingers non-existent user on your machine If the local user has file .efingerd in his/her/its home directory, and it is readable by the daemon, it will be executed and it's output will be served to the fingerer. These are normal programs, displaying on standard output desired information. These programs are called with following parameters: $1 - identity of remote user, (null) if his/her/its system is not running ident $2 - address of remote machine (IP number if it has not reverse DNS entry or you specified -n) $3 - name of local user being fingered Look at examples/ for examples. Don't forget that these programs must be executable by efingerd daemon. SEE ALSO
finger(1), fingerd(8) AUTHOR
Radovan Garabik (garabik@fmph.uniba.sk) BUGS
file .efingerd in user's home directory must be executable and readable by UID efingerd runs under to work. EFINGERD(8)
All times are GMT -4. The time now is 08:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy