Sponsored Content
Top Forums Shell Programming and Scripting Help Simple FTP Script Here Syntax Post 302794633 by gdotoli on Tuesday 16th of April 2013 11:29:54 AM
Old 04-16-2013
Thank you for coding tips but the problem wasn't adressed

Thank you for the security advice, but the cat worked.
It is the FTP here syntax I needed help with.

Does anyone see the problem with this here syntax?

Thank you.
Gregg Dotoli
Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

simple bash script to ftp?

Hi all has anyone got a code snippet of how i can ftp a file automatically by running a simple bash script. I have 4 things IP address xx.xxx.xx.xx username=satnam domain = app.sample.ftp password= satnam_password Im not sure how to pull these all together to ftp a file? any ideas? (1 Reply)
Discussion started by: satnamx
1 Replies

2. HP-UX

Syntax problem with Unix ftp get command

An outside vendor has staged 2 batch files for us and I've tried to retrieve the files using the commands that they've indicated I could use to retrieve one file at a time. I've tried using this command in a shell script after a successful connection to their server: get "$$ ID=IL096869 BID='PGP... (2 Replies)
Discussion started by: mheinen
2 Replies

3. UNIX for Dummies Questions & Answers

FTP - switching user syntax

Running the following shell script, #!/usr/bin/ksh set -x swdofile=/opt/SWDO_IN1V01P001_1.csv USER='myusername' PASSWD='mypassword' HOST='myhostname' ftp -n $HOST << SCRIPT quote USER $USER quote PASS $PASSWD su - BRA -c put $swdofile quit SCRIPT exit 0 but not managing to get the... (1 Reply)
Discussion started by: daveaasmith
1 Replies

4. Shell Programming and Scripting

Simple script uploading *.dem files to an ftp

Hello.. i want to create a simple script that's upload all the *.dem files from one directory to ftp and then delete them. Any help? (3 Replies)
Discussion started by: TuXaKoS
3 Replies

5. Programming

Tools for writing a simple syntax checker?

I'm trying to write a small utility for syntax checking. I've tried using Flex/Bison, but these seem too advanced for my task. A simpler tool would be appreciated. (1 Reply)
Discussion started by: Ilja
1 Replies

6. UNIX for Dummies Questions & Answers

User ID syntax to FTP to Windows

Hello, I have searched the forums and may not be putting in the right keywords, but hopefully someone will be kind enough to help... It's been awhile since I've ftp'd to a Windows server, but no matter how I try to connect, it will not let me, although I have no issues setting up a connection... (1 Reply)
Discussion started by: tekster757
1 Replies

7. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

8. UNIX for Dummies Questions & Answers

Help syntax to restore partition from ftp

Hi, I found info on the internet to backup a partition to ftp. But I am unable to properly format the syntax to restore the partition. This is being done from a ssh logged in session to a server booted with a liveCD. backup: dd if=/dev/sda5 bs=2048 conv=noerror,sync | lftp -u user,passwd... (7 Replies)
Discussion started by: chang-li
7 Replies

9. Shell Programming and Scripting

Help with FTP Script which is causing "syntax error: unexpected end of file" Error

Hi All, Please hav a look at the below peice of script and let me know if there are any syntax errors. i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
Discussion started by: mahi_mayu069
1 Replies

10. UNIX for Beginners Questions & Answers

Syntax in a simple script

I am in the process of writing a script. A very preliminary version is giving a syntax error. The script is #!/bin/bash #file1='./data/heu/hout1' exec 10<&0 exec < './data/heu/hout1' #file1='./data/heu/hout1- i=1 j=0 while read file1 do echo $file1 echo $i if then... (3 Replies)
Discussion started by: ngabrani
3 Replies
secval(1m)																secval(1m)

NAME
secval - A dcecp object that manages the security validation service on a host SYNOPSIS
secval activate [host_name_list] secval deactivate [host_name_list] secval help [operation | -verbose] secval operations secval ping [host_name_list] secval status [host_name_list] secval update [host_name_list] [-pesite time_in_seconds] ARGUMENTS
A list of one or more names of host systems whose security validation systems you want to act on. If you do not specify this argument, the local host is assumed. The argument is optional and takes one of the following forms: hosts/host_name /.:/hosts/host_name /.../cell_name/hosts/host_name The name can also be a single string binding representing the host with which to communicate. For example: {ncacn_ip_tcp 130.105.1.227} A string binding is useful when the name service is not operating and cannot translate the other forms of host names. The name of the sec- val operation for which to display help information. DESCRIPTION
The secval object represents the security validation service running on a host, as part of the dced server. This service is responsible for maintaining the security credentials of the host machine. Access to the commands is based on the access control list (ACL) of the security validation object for a host. This takes the form of /.../cell_name/hosts/host_name/config/secval. OPERATIONS
secval activate Activates a security validation service. The syntax is as follows: secval activate [host_name_list] The activate operation activates a security validation service. If the service is already activated, an error is returned. The optional host_name_list argument is a list of one or more names of host systems whose security validation systems you want to activate. This opera- tion returns an empty string on success. Privileges Required You must have x (execute) permission to the security validation service object. Examples dcecp> secval activate dcecp> dcecp> secval activate ncacn_ip_tcp:15.22.24.145 dcecp> secval deactivate Deactivates a security validation service. The syntax is as follows: secval deactivate [host_name_list] The deactivate operation deactivates a security validation service. If it is already deactivated, an error is returned. The optional host_name_list argument is a list of one or more names of host systems whose security validation systems you want to deactivate. This operation returns an empty string on success. Privileges Required You must have s (stop) permission to the security validation service object. Examples dcecp> secval deactivate dcecp> dcecp> secval deactivate /.:/hosts/gumby dcecp> secval help Returns help information about the secval object and its operations. The syntax is as follows: secval help [operation | -verbose] Options Displays information about the secval object. Used without an argument or option, the secval help command returns brief information about each secval operation. The optional operation argument is the name of an operation about which you want detailed information. Alternatively, you can use the -verbose option for more detailed information about the secval object itself. Privileges Required No special privileges are needed to use the secval help command. Examples dcecp> secval help activate Enables the secval service. deactivate Disables the secval service. ping Contacts the dced secval to validate the security service. status Returns 1 if secval is enabled, 0 if not. update Updates a component of the secval. help Prints a summary of command-line options. operations Returns a list of the valid operations for this command. dcecp> secval operations Returns a list of the operations supported by the secval object. The syntax is as follows: secval operations The list of available operations is in alphabetical order except for help and operations, which are listed last. Privileges Required No special privileges are needed to use the secval operations command. Examples dcecp> secval operations activate deactivate ping status update help operations dcecp> secval ping Validates the credentials returned by a DCE security service. The syntax is as follows: secval ping [host_name_list] The ping operation validates the credentials returned by a security service. This operation can be used to verify that secd is trusted. The operation returns 1 if the credentials are valid, 0 if they are not. The optional host_name_list argument is a list of one or more names of host systems whose security validation systems you want to validate. If the argument is a list of host names, a list is returned with a 1 or a 0 for each server. Privileges Required No special privileges are needed to use the secval ping command. Examples dcecp> secval ping 1 dcecp> dcecp> secval ping /.../pokey_cell/hosts/gumby 1 dcecp> secval status Checks for an active secval. The syntax is as follows: secval status [host_name_list] The status operation returns 1 if the security validation service is activated, 0 if it is not. If the argument is a list, a list is returned, with a 1 or 0 for each server. Privileges Required No special privileges are needed to use the secval status command. Examples dcecp> secval status 1 dcecp> dcecp> secval status ncacn_ip_tcp:15.22.24.145 1 dcecp> secval update Updates a component of the secval service. The syntax is as follows: secval update [host_name_list] [-pesite time_in_seconds] Options Sets the amount of time to wait between each pe_site Thread Maintenance update. The update operation updates a component of the security validation service. Currently only updates to the pe_site Maintainer Thread are supported. Use the -pesite option to set the amount of time in seconds between each update. The update is performed after the time speci- fied in time_in_seconds passes. If the -pesite option is not supplied, the update is performed immediately. This operation returns an empty string on success. Privileges Required You must have x (execute) permission to the security validation service object. Examples dcecp> secval update -pesite 300 dcecp> RELATED INFORMATION
Commands: dcecp(1m), dced(1m). secval(1m)
All times are GMT -4. The time now is 07:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy