Much like plink -- or any other command -- if you don't feed commands into su, they don't get fed into su. It doesn't just "take over" the script you're running.
Fortunately, it's a lot easier to feed things into a program in UNIX sh than in CPM.
I am new to UNIX , Can any one let me know how to execute shell script (i.e which command I have to use for the same).
Any help would be appreciated.
Thanks
siva
mymvs999@yahoo.com (3 Replies)
Hi all,
I am begginer of UNIX . I dont know if i have a script written in korn shell with .ksh extention . If i want to execute that how can i do that? Can anybody suggest the best book to learn korn shell scripting.
Thanks
sam71 (1 Reply)
This is my shell script... test.sh
DIRECTORY=/XYZ/PQR
if ; then
echo "In test.."
else
echo "lno.."
fi
when i run this script through a putty its output is:
./test.sh: line 2: [: too many arguments
lno..
But when i run the same script using plink its running fine and its... (5 Replies)
Hi all,
I am beginner in UNIX...I want to use unix shell script to create text.file...I know how to use using by command...can anybody tell me for the script?
Thanks
i changed the threads title from "tex file" to "text file", because "tex" would probably be misunderstood as reference to... (4 Replies)
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Hi all,
As i want to know how the shell command "nohup" worked.I logged in as the user named vincent through Gnome.Then i press ctrl+atl+F1 changed into a console and logged in as another user named kinsley.The user "kinsley" is added by me with "useradd",and now there's no HOME directory for... (6 Replies)
Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh.
Thanks in advance (2 Replies)
Hi Experts,
I want to execute shell script(on HP-UX) wihout specifying interpreter.
For e.g generally we use following command to execute shell
sh test.sh
but I want to execute it as
test.sh
currently if I execute directly it as test.sh it is giving error Commnd Not... (7 Replies)
Hi team,
My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server.
I have completed the first part i.e From windows to using to unix server with the help of psftp.exe
code:
psftp user@host -pw password <... (1 Reply)
Discussion started by: bhupeshchavan
1 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)