01-12-2011
OK let me explain again
I have 5or any number of files at location /usr/abc files name can be anything....
But there will be one fixed file called Fe.ok file.
I want to automate the below process...
Automated script process -
Transfer
1st file (any name) and
Fe.ok to
/usr/dob location from /usr/abc and run my_script.ksh.
If success transfer next set
2nd file AND Fe.ok
and so on.................
If fails throw an ERROR...
Earlier u gave me a solution where the file name where known with fixed name..
What if the file name changes but stil i want to pick those file one by one from top to botton with one fixed file Fe.OK transfer them to another directory and run my_script.ksh...Earlier solution was to put the file name in for loop..It is sensible if there are 6 files, i can put those file names in for loop, but what if there are 100 files then it becomes impossible for me to put 100 files name in the for loop...
9 More Discussions You Might Find Interesting
1. Cybersecurity
Hi All,
I am a newbie to unix and scripting. I need to do the following job:
1. Create a batch file in windows that will call a script in a remote unix box.
2. The script now ftp files from the Remote windows machine and get them back to the local windows.
Actually, I have written the script... (3 Replies)
Discussion started by: Ankur
3 Replies
2. UNIX for Advanced & Expert Users
1.How will you do automation of Informatica jobs using Unix ?
2. How u run workflow from Unix? :) (2 Replies)
Discussion started by: kamesh83
2 Replies
3. Shell Programming and Scripting
I am searching for a automation testing tool which I can use for most of the UNIX platforms (AIX, Linux, HP UX, Solaris). The installation process of the application in all platforms is almost same. Are you aware of any automation tool (like WinRunner for Windows) to solve my problem? (5 Replies)
Discussion started by: unmanju
5 Replies
4. Shell Programming and Scripting
Hi, i'm a newbie with unix and shell scripting. I'm just trying to do a script to simply automate a unix task. This are the steps on what i want to just run on a simple shell script
1. go to a specific path (cd /folder1/folder2/)
2. edit and input a number on a file (file_id) then save exit... (6 Replies)
Discussion started by: soultransit
6 Replies
5. Shell Programming and Scripting
hi
i need shell script in ksh for the automation process in informtica.
The automation process is like this .
i have a folder in unix . when this folder gets updated (like if a file or files is/are added to the folder) an event in informatica is triggered and after the process is done in... (2 Replies)
Discussion started by: kumar8887
2 Replies
6. Homework & Coursework Questions
Hi Sir,
I need unix code which will read data present in .xls file and should send an automated mails .when i place the .XLS file in a specific folder and run ***.sh from unix box
Attached Excel file contains
Subject , To , CC , Body (Paragraph 1) , Body (Paragraph 2) , Signature
When i... (2 Replies)
Discussion started by: chaitanyaS
2 Replies
7. Shell Programming and Scripting
Hello Folks - Need help really ASAP.
Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers.
#!/bin/ksh
_servers=""
_out="/tmp/output.$$"
_ssh=/usr/bin/ssh
>$_out
for s in $_servers
do
$_ssh $s fdisk -l >> $_out
done
... (8 Replies)
Discussion started by: bkilaru
8 Replies
8. Post Here to Contact Site Administrators and Moderators
I am using netteza server and i have a list of table names. I need to fetch all the data from these tables and need to create seperate zip files and store in a folder in the server. How can we automate this process. (1 Reply)
Discussion started by: nikhilthms97
1 Replies
9. UNIX for Beginners Questions & Answers
Hi folks,
has any one attempted using bots for performing tasks in unix?please share if you faced any challenges
thanks (1 Reply)
Discussion started by: tommy812
1 Replies
LEARN ABOUT DEBIAN
fixdiv
fixdiv(3alleg4) Allegro manual fixdiv(3alleg4)
NAME
fixdiv - Fixed point division. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
fixed fixdiv(fixed x, fixed y);
DESCRIPTION
A fixed point value can be divided by an integer with the normal `/' operator. To divide two fixed point values, though, you must use this
function. If a division by zero occurs, `errno' will be set and the maximum possible value will be returned, but `errno' is not cleared if
the operation is successful. This means that if you are going to test for division by zero you should set `errno=0' before calling fix-
div(). Example:
fixed result;
/* This will put 0.06060 `result'. */
result = fixdiv(itofix(2), itofix(33));
/* This will put 0 into `result'. */
result = fixdiv(0, itofix(-30));
/* Sets `errno' and puts -32768 into `result'. */
result = fixdiv(itofix(-100), itofix(0));
ASSERT(!errno); /* This will fail. */
RETURN VALUE
Returns the result of dividing `x' by `y'. If `y' is zero, returns the maximum possible fixed point value and sets `errno' to ERANGE.
SEE ALSO
fixadd(3alleg4), fixsub(3alleg4), fixmul(3alleg4), exfixed(3alleg4)
Allegro version 4.4.2 fixdiv(3alleg4)