11-22-2009
Quote:
Originally Posted by
AntiPin
Unfortunately we didnt learn in the course Scripts so i cant use what yo gave
you didn't learn about scripts?!
scripts are basically files that sequentially run the commands in the file as if you typed them yourself, so simple put the code that wwwzviadi placed in a file, than run that file in the background like so: ./FileName &
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Gurus
WHat would be the command to check whether there is a file in particular path or not..
for ex: my file name is ExRate_20071501.csv
I can have many files with same pattern but diffrentiated by date..
i have a process where i have to check if files exist in tht folder i have to... (5 Replies)
Discussion started by: sish78
5 Replies
2. Shell Programming and Scripting
Hi All,
How do i find out the number of files in a directory using unix command ? (14 Replies)
Discussion started by: Raynon
14 Replies
3. Shell Programming and Scripting
Hi All,
I need to create a file which contains the list of all the files present in that directory.
e.g.,
ls /export/home/user/*.dat > list_file.dat
but what i am getting is:
$ ls /export/home/user/*.dat > list_file.dat
/export/home/user/*.dat: No such file or directory
But I have... (1 Reply)
Discussion started by: pranavagarwal
1 Replies
4. Shell Programming and Scripting
Hello,
I was wondering if anyone had an answer for this?
thanks,
KW (3 Replies)
Discussion started by: kwa71
3 Replies
5. Shell Programming and Scripting
I have list of files named file_username_051208_025233.log. Here 051208 is the date and 025233 is the time.I have to run thousands of files daily.I want to put all the files depending on the date of running into a date directory.Suppose if we run files today they should put into 05:Dec:08... (3 Replies)
Discussion started by: ravi030
3 Replies
6. Shell Programming and Scripting
what's the script to do that?
i want to only count the number of files in that directory, not including any sub directories at all (5 Replies)
Discussion started by: finalight
5 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I would like to do a loop on all the files with extension .out in my directory this files should be sorted alphabetically.
Then I need to assign to each of them a progressive ID of three digits (maybe in HEX format?).
First I tried to list manually the files as
ARRAY=(
A-001.out ... (5 Replies)
Discussion started by: f_o_555
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Discussion started by: ammu
3 Replies
9. Shell Programming and Scripting
Hi all,
I'm looking over all the internet for finding how to make a count of the files for every directory apart.. not a total result for the xx directories.
For example:
-dir1
file1
file2
-subdir1
-subdir2
file1
-subdir3
file1
-dir2
-dir3
file4
... (9 Replies)
Discussion started by: CODIII
9 Replies
10. Shell Programming and Scripting
Hi!
I just want to count number of files in a directory, and write to new text file, with number of files and their name
output should look like this,,
assume that below one is a new file created by script
Number of files in directory = 25
1. a.txt
2. abc.txt
3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies
LEARN ABOUT CENTOS
sieveshell
SIEVESHELL(1) User Contributed Perl Documentation SIEVESHELL(1)
NAME
sieveshell - remotely manipulate sieve scripts
SYNOPSIS
sieveshell [--user=user] [--authname=authname] [--realm=realm] [--exec=script] server[:port]
sieveshell --help
DESCRIPTION
sieveshell allows users to manipulate their scripts on a remote server. It works via MANAGESIEVE, a work in progress.
The following commands are recognized:
list list scripts on server.
put <filename> upload script to server.
get <name> [<filename>] get script. if no filename display to stdout
delete <name> delete script.
activate <name> activate script.
deactivate deactivate all scripts.
OPTIONS
-u user, --user=user
The authorization name to request; by default, derived from the authentication credentials.
-a authname, --authname=authname
The user to use for authentication (defaults to current user).
-r realm, --realm=realm
The realm to attempt authentication in.
-e script, --exec=script
Instead of working interactively, run commands from script, and exit when done.
REFERENCES
[MANAGESIEVE] Martin, T.; "A Protocol for Remotely Managing Sieve Scripts", draft-ietf-managesieve-03.txt, Mirapoint, Inc.; May 2001, work
in progress.
AUTHOR
Tim Martin <tmartin@mirapoint.com>, and the rest of the Cyrus team <cyrus-bugs@andrew.cmu.edu>.
perl v5.16.3 2014-06-10 SIEVESHELL(1)