06-26-2001
Creating a batch file.
I'm very new to unix and for the most part make my way around but I need to know how to create a batch file that can be ran at scheduled time. The main function of the file will be to copy files to different locations then FTP to a different server. Please help. I you have an example that would be great.
Thanks,
Mike
9 More Discussions You Might Find Interesting
1. IP Networking
my requirment is
i have to call a batch file from a c++ program
that batch file is called with the argument as print.txt
print.txt is a text file which should get printed on printer (any printer) when a batch file call is made
1) how to call a batch file in c++
2) how to print the text... (1 Reply)
Discussion started by: ramneek
1 Replies
2. Programming
what is a command to call a batch file from a c++ program
when called with the argument which is a text file, then how to print that text file on a printer.
please help me with code if possible (3 Replies)
Discussion started by: ramneek
3 Replies
3. UNIX for Advanced & Expert Users
In my dir there are files like
a.xml
b.xml
abnc.xml
12.abc.xml
12.anc.sfoioi.xml
I need to remove .xml from all the files
Is there any direct way without using any for/do loop
Right now i am using
for file in *
do
... (7 Replies)
Discussion started by: reldb
7 Replies
4. UNIX for Dummies Questions & Answers
hi to aLL...
I'm just new here in the forum...anyway, im currently using /bin/sh for creating some batch file or scripts...it's just the same...anyway, is it advisable to use it in creating batch file....?
thanks...
:p (0 Replies)
Discussion started by: m0njasper
0 Replies
5. Windows & DOS: Issues & Discussions
Hello, this is my first post and i hope you can solve my problem.
I need to create a batch file that will copy folder from hard drive on to usb stick on daily basis.
Can you help me and write that file and explaine me what to do next.
Folder's location is: c\windows\desktop\2009
Thank... (5 Replies)
Discussion started by: hule
5 Replies
6. Shell Programming and Scripting
Hi
I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file.
For eg.If input file name is abcd.csv and contents is :
"asasd,123123,213213,asd"
"esfrf,dsfsdf,234324,sdfsdf"
Then the batch file should remove "" from the... (11 Replies)
Discussion started by: akashtcs
11 Replies
7. UNIX for Advanced & Expert Users
Hi all
I am using tru64 Unix and I want a ready batch file which makes me to change all user passwords at the same time ,instead of changing everyone separately.
Please could anyone help me to do that.
bye. (1 Reply)
Discussion started by: ahmedbashir
1 Replies
8. Shell Programming and Scripting
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Discussion started by: goddevil
2 Replies
9. Shell Programming and Scripting
Hi guys,
I need a script to change the file names e.g.:-
below are the mentioned files, i want t0 change the last character of the name 00000.cdr with e.g bep01.smsc.191214210500-00000.cdr to bep01.smsc.191214210500-92311.cdr next file be like bep01.smsc.191214210500-92312.cdr
# ls -ltr... (9 Replies)
Discussion started by: mfaizan40
9 Replies
LEARN ABOUT HPUX
ipsec_config_batch
ipsec_config_batch(1M) ipsec_config_batch(1M)
NAME
ipsec_config_batch - allow for processing of IPsec config operations in a single batch file
SYNOPSIS
batch_file_name profile_file]
DESCRIPTION
The command allows you to specify multiple and operations in a single batch file for processing. HP-UX IPSec processes the operations in a
batch file as a group. This mode is useful if you are adding or deleting configuration records that may affect other records.
If one operation is invalid, all operations in the batch file fail. The utility first verifies each operation in the batch file for syntax
errors and collisions (object names and priority values) with existing entries in the configuration database. If all operations in the
batch file are valid, the HP-UX IPSec infrastructure updates the configuration database with all operations at the same time. If HP-UX
IPSec is active and running, the HP-UX IPSec infrastructure also updates the runtime policy database.
Options and Operands
The batch operation recognizes the following options and operands:
batch_file_name
The name of the batch file containing and operations.
A batch file cannot contain operations that operate on the following objects:
For example, the
operation is illegal in a batch file.
In addition, a batch file cannot contain the following commands:
o does not allow recursive batch files) or commands.
o
o
Lines starting with a pound sign are interpreted as comments. Comment lines within an operation are not allowed.
Maximum length: 1023 characters.
Default: None.
The utility verifies the and operations, but does not add or delete entries in the configuration database. This option applies to
all operations in the batch file. Individual operations in the batch file cannot specify the option.
Specifies the name of the profile file containing default argument
values for this policy. The argument values are evaluated once, when the policy is added to the configuration database. Val-
ues used from the profile file become part of the configuration record for the policy.
This argument applies to all operations in the batch file. Individual operations in the batch file cannot specify the profile
argument.
Maximum length: 1023 characters.
Default:
EXAMPLES
The file contains the following entries:
AUTHOR
was developed by HP.
FILES
configuration database.
default profile file.
SEE ALSO
ipsec_admin(1M), ipsec_config(1M), ipsec_config_add(1M), ipsec_config_delete(1M), ipsec_config_export(1M), ipsec_config_show(1M),
ipsec_migrate(1M), ipsec_policy(1M), ipsec_report(1M).
HP-UX IPSec Software Required ipsec_config_batch(1M)