Sponsored Content
Top Forums Shell Programming and Scripting Not the usual ftp script question Post 70205 by cstovall on Tuesday 26th of April 2005 06:37:55 PM
Old 04-26-2005
Perderabo,

I can use ksh. Would you mind giving me an idea of how I might accomplish this task
using ksh. Your help would be greatly appreciated.

Right now I am stuck with building a file transfer list based on a numeric ext. that can be in the range of 1-99999. The I am using wget with the no clobber option to execute a loop based on the build list. I still couldn't figure out how to rename randomly generated files, which have been transferred, with a numeric "ext." to ".done"

There has to be an easier way.
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP - shell script question

Hi All, I had a question on something which i have trying to add to my current shell script which does FTP of files from my local machine to a remote server. I have 5 files which i zip and FTP them on daily basis to a remote server. My script is as below: ############################... (6 Replies)
Discussion started by: bsandeep_80
6 Replies

2. Shell Programming and Scripting

perl or bash script that will generate a higher than usual load

Hi, please advise what function in perl or system call in shell that will generate cpu usage that is higher than usual? I would like make such a script, to test a monitoring feature. TIA. Marc (1 Reply)
Discussion started by: marcpascual
1 Replies

3. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

4. Programming

Java double subtraction oddity (not the usual rounding discrepancy)

I've been going through a java tutorial, and ran across some strangeness in this small example... class SqrRoot { public static void main(String args) { double num,sroot,rerr,resquare; for(num = 1.0; num < 100.0; num++) { sroot = Math.sqrt(num); ... (1 Reply)
Discussion started by: Trones
1 Replies

5. Shell Programming and Scripting

repeating ftp script question

so i got this request to do this: - Script should check for the file ever 15 minutes on the FTP server…if the file is not found, then the whole script exits. File will only be created one a week at random. i have gotten this far, but am kind of stuck, also sleep command doesnt work... (3 Replies)
Discussion started by: zapatur23
3 Replies

6. Solaris

Copy via samba on vmware workstation with Solaris taking much longer than usual

i have a vmware workstation with solaris 10 installed on this. i copying 2 gb data via samba from windows to this vmware workstation. copy speed is 24 kb/sec. how i can speed up this copy process ? (7 Replies)
Discussion started by: rehantayyab82
7 Replies
SMBSPOOL(8)															       SMBSPOOL(8)

NAME
smbspool - send print file to an SMB printer SYNOPSIS
smbspool [ job ] [ user ] [ title ] [ copies ] [ options ] [ filename ] DESCRIPTION
This tool is part of the Samba suite. smbspool is a very small print spooling program that sends a print file to an SMB printer. The command-line arguments are position-depen- dent for compatibility with the Common UNIX Printing System, but you can use smbspool with any printing system or from a program or script. DEVICE URI smbspool specifies the destination using a Uniform Resource Identifier ("URI") with a method of "smb". This string can take a number of forms: o smb://server/printer o smb://workgroup/server/printer o smb://username:password@server/printer o smb://username:password@workgroup/server/printer smbspool tries to get the URI from argv[0]. If argv[0] contains the name of the program then it looks in the DEVICE_URI environment vari- able. Programs using the exec(2) functions can pass the URI in argv[0], while shell scripts must set the DEVICE_URI environment variable prior to running smbspool. OPTIONS
o The job argument (argv[1]) contains the job ID number and is presently not used by smbspool. o The user argument (argv[2]) contains the print user's name and is presently not used by smbspool. o The title argument (argv[3]) contains the job title string and is passed as the remote file name when sending the print job. o The copies argument (argv[4]) contains the number of copies to be printed of the named file. If no filename is provided than this argu- ment is not used by smbspool. o The options argument (argv[5]) contains the print options in a single string and is presently not used by smbspool. o The filename argument (argv[6]) contains the name of the file to print. If this argument is not specified then the print file is read from the standard input. VERSION
This man page is correct for version 2.2 of the Samba suite. SEE ALSO
smbd(8) and samba(7) AUTHOR
smbspool was written by Michael Sweet at Easy Software Products. The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter 19 November 2002 SMBSPOOL(8)
All times are GMT -4. The time now is 07:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy