Sponsored Content
Top Forums Shell Programming and Scripting Help Simple FTP Script Here Syntax Post 302796047 by gdotoli on Thursday 18th of April 2013 08:30:27 PM
Old 04-18-2013
What version of wget do you have? Mine is the latest and greatest compiled from
the source code. That code above won't work. Where is the variable for user and
formatted mail address? You also have no recursive switch. I see the pipe function
but this will not work. Mine is sufficient. If it ain't broke, don't fixit. What flavor of UX did you run this on? Please wrap your code in tags so we all can see syntax and function.

Gregg Dotoli
 

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
mlmmj-sub(1)						      General Commands Manual						      mlmmj-sub(1)

NAME
mlmmj-sub - subscribe address to a mailinglist run by mlmmj SYNOPSIS
mlmmj-sub -L /path/to/list [-a john@doe.org | -m str] [-c] [-C] [-d | -n] [-f] [-h] [-q] [-r | -R] [-s] [-U] [-V] -a: Email address to subscribe -c: Send welcome mail (unless requesting confirmation) -C: Request mail confirmation (unless switching versions) -d: Subscribe to digest version of the list -f: Force subscription (do not moderate) -h: This help -L: Full path to list directory -m: Moderation string -n: Subscribe to nomail version of the list -q: Be quiet (don't notify owner about the subscription) -r: Behave as if request arrived via email (internal use) -R: Behave as if confirmation arrived via email (internal use) -s: Don't send a mail to the subscriber if already subscribed -U: Don't switch to the user id of the listdir owner -V: Print version DESCRIPTION
This utility is used to subscribe people to the specified mailinglist. It will write the email address in a file with the name of the beginning letter of the email address getting subscribed in the <listdir>/subscribers.d/ directory. The digest version of the list is a list version where people receive postings to the list periodically (e.g. once a day) or when a large number of posts have accumulated. Digest subscribers are in the <listdir>/digesters.d/ directory. The nomail version of the list is a list version where people are subscribed like usual, but they won't receive any postings to the list. This is useful for people who read the mailinglist through a news gateway, but want to be able to post to the list. Nomail subscribers are in the <listdir>/nomailsubs.d/ directory. Unless the -U switch is used it will switch its user id to the user id owning the list directory. This is done to make sure that new files created are having correct permissions. If the given address is already subscribed to the list, but to a different version, the subscription is switched to that version, and con- firmation and moderation are bypassed. If the address is already subscribed to the version requested, a mail is sent to the subscriber, unless the -s switch is used. Subscription may be moderated (if <listdir>/control/submod exists) unless the -f switch is given. When a subscription is permitted by a gatekeeper, welcome messages are sent to the subscriber as usual, regardless of options given now. To ensure subscription is silent from the point of view of the subscriber, use -f, but neither -c nor -C. To inhibit notification of the owner, use -q. Use of -s is recommended to ensure you don't spam already-subscribed addresses by accident. SEE ALSO
mlmmj-unsub(1), setuid(2) AUTHORS
This manual page was written by the following persons: Soren Boll Overgaard <boll@debian.org> (based on html2man output) Mads Martin Jorgensen <mmj@mmj.dk> mlmmj-sub January 2010 mlmmj-sub(1)
All times are GMT -4. The time now is 05:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy