- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: FTP Scripting in RHAS 2.1
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 03:46 PM
06-01-2006 03:46 PM
FTP Scripting in RHAS 2.1
I am facing this challenge and I don't know why it doesn't work and I hope someone here will be able to help me. My current FTP script is working fine when it's only looking for '*txt' - I must change how it was looking for every file end with *txt, but now focus on just one specific file
'Myfile20060601AABB.txt' - This is what set to do:
FILE='Myfile*2006'$DATE*
By tsting, I create a file Myfile20060601.txt and run my script and I get nothing.
Does anyone know what's the correct syntax for selecting just one specific file with a script??
Please help!!
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 04:49 PM
06-01-2006 04:49 PM
Re: FTP Scripting in RHAS 2.1
$ cat test
DATE='0601'
FILE='Myfile*2006'$DATE*
echo "This is file name : $FILE"
cat $FILE
$
Files in the directory
$ ls
Myfile20060601AABB.txt Myfileww20060601AABB.txt Myfileww20060601ghgh test
When i run the script I can print all the files
$ ./test
This is file name : Myfile*20060601*
a
b
c
d
e
f
abdul1
abdul2
$
Now you need to tell me that what is the correct file name convention you having and what exact file name you want to select?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 04:48 AM
06-02-2006 04:48 AM
Re: FTP Scripting in RHAS 2.1
I Should have included the full script for you to see. Within the script, I am also dealing with the group permission as well. Like I've siad before, everything is working according to want they want before. The scope has changed a little bit by asking me to only pull down the certain files. Of course, it just happened that all the files are ended with a .txt extension.
The script has been attached.
Thanks for your help.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2006 02:52 AM
06-04-2006 02:52 AM
Re: FTP Scripting in RHAS 2.1
Does anyone has any ideas??
Please help!!
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2006 07:42 PM
06-04-2006 07:42 PM
Re: FTP Scripting in RHAS 2.1
FILE=FILE='Myfile*2006'$DATE*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2006 12:55 AM
06-05-2006 12:55 AM
Re: FTP Scripting in RHAS 2.1
Any ideas?
Thanks,
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2006 06:13 PM
06-05-2006 06:13 PM
Re: FTP Scripting in RHAS 2.1
Please run the sript with the following line as its first line of code after the shell is set.
set -x
Also, make sure you set the shell
#!/bin/sh
or
#!/bin/bash
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 04:29 AM
06-07-2006 04:29 AM
Re: FTP Scripting in RHAS 2.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 04:30 AM
06-07-2006 04:30 AM