11-12-2009
Maybe this is not the place to post it, but I don't know where else to ask...
I would really like to understand exactly how scripts work (in terms of the the syntax etc.) I don't know where to start. I would like to ultimately be able to understand why this script works and how.
Can someone recommend either a website or book (like "scripting for dummies") that I could go to?
Thanks in advance.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Move a file from windows directory to unix directory, is this possible?
if it is, can someone help me on this?
Thanks! God bless! (1 Reply)
Discussion started by: kingpeejay
1 Replies
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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
4. UNIX for Dummies Questions & Answers
I have a directory e2e_ms_xfer/cent01
this contains the multiple files some of which will be named below with unique date time stamps
e2e_ms_edd_nom_CCYYMMDD_HHMM.csv
What I want to do is in a loop
1) Get the oldest file
2) Rename
3) Move it up one level from e2e_ms_xfer/cent01 to... (1 Reply)
Discussion started by: andymay
1 Replies
5. Shell Programming and Scripting
Hi
In directory /mnt/upload I have about 100 000 files (*.png) that have been created during the last six months. Now I need to move them to right folders. eg:
file created on 2014-10-10 move to directory /mnt/upload/20141010
file created on 2014-11-11 move to directory /mnt/upload/20141111... (6 Replies)
Discussion started by: primo102
6 Replies
6. Shell Programming and Scripting
I'm using cygwin32 on Windows.
DN is an environment variable pointed at my download directory.
This command works to move the single most recent file in my download directory to my current directory:
mv "`perl -e '$p = $ARGV; opendir $h, $p or die "cannot opendir $p: $!"; @f = sort { -M $a... (2 Replies)
Discussion started by: siegfried
2 Replies
7. Shell Programming and Scripting
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
8. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
9. Shell Programming and Scripting
Dears,
I have a listfile contains list of files path.
i need to read the line of the listfile
mv the file to other directory
and update the listfile by deleting the lines of the listfile.
#!/bin/bash
target=/fstest/INVESTIG/Sadiq/TEST_ARCH
while read -r line || ];
do
mv $line... (19 Replies)
Discussion started by: sadique.manzar
19 Replies
10. UNIX for Beginners Questions & Answers
In the below there are two generic .vcf files (genome.S1.vcf and genome.S2.vcf) in a directory. There wont always be two genaric files but I am trying to use bash to rename each of these generic files with specfic text (unique identifier) within in each .vcf. The text will always be different, but... (11 Replies)
Discussion started by: cmccabe
11 Replies
LEARN ABOUT SUSE
capisuite.conf
CAPISUITE.CONF(5) CAPISUITE.CONF(5)
NAME
capisuite.conf - configuration of the CapiSuite daemon
DESCRIPTION
The options for the CapiSuite daemon are configured here. They will be presented in brief here - for further details please refer to the
comments in the configuration file itself.
OPTIONS
incoming_script="/path/to/incoming.py"
This option tells CapiSuite which script should be executed at incoming calls. Only change this if you want to use your own script.
idle_script="/path/to/idle.py"
This option reflects the path and name of the idle script. This script is called in regular intervalls to check if any outgoing call
should be done. As above, the default should be ok if you don't use your own script.
idle_script_interval="30"
Here you can define how often the idle script should be executed. The number given is the interval between subsequent invocations in
seconds. Lesser numbers give you quicker response to queued jobs but also a higher system load. The default should be ok in most
cases.
log_file="/path/to/capisuite.log"
This file will be used for all "normal" messages printed byCapiSuite telling you what it does. Error messages are written to a spe-
cial log (see below).
log_level="1"
You can define how detailled the log output of CapiSuite will be. The default will give you some informational messages for each
incoming and outgoing call and should be enough for normal use. I would recommend to only increase it if you encounter some prob-
lems. Logs of higher level are mainly intended for developers, so just use them if you want to report a problem or have some
know-how of the CAPI interface and the internals of CapiSuite.
log_error="/path/to/capisuite.error"
All errors which CapiSuite detects internally and in your scripts will end up here. They are written to an extra file so that they
don't get lost in the normal log. Please check this log regularly for any messages - especially when you encounter problems. Please
report all messages you don't understand and which aren't caused by your own script-modifications to the CapiSuite team.
DDI_length="0"
When your ISDN card is connected to an ISDN interface in PtP mode, i.e. if you use DDI which, in understandable words mean you have
only one ISDN phone number and can define your own extensions as you like, you have to set the length of your extension numbers
here. In Germany, PtP mode is called "Anlagenanschluss". Let's say you use 1234-000 till 1234-999, then your DDI_length would be 3.
If you set this to 0, DDI/PtP is disabled.
If you're not sure what all this should mean, then chances are high you don't use DDI and can leave this option as it is.
DDI_base_length="0"
This option is only used when DDI_length is not 0. This is the length of your base number - in the example above it would be 4.
DDI_stop_numbers=""
If you usually use extension numbers of a specified length, but also want to use some shorter ones (e.g. the "-0" extension for you
switchboard), then you can list these shorter extensions here, separated by commas.
SEE ALSO
capisuite(8), fax.conf(5), answering_machine.conf(5), capisuitefax(1)
AUTHOR
Gernot Hillier <gernot@hillier.de>.
CAPISUITE.CONF(5)