The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
automated ftp. sangfroid Shell Programming and Scripting 10 05-07-2007 11:52 AM
process vs task hana UNIX for Dummies Questions & Answers 2 07-02-2006 06:32 PM
Automated FTP shauche UNIX for Advanced & Expert Users 11 07-11-2002 02:08 AM
FTP automated? n9ninchd UNIX for Dummies Questions & Answers 6 05-18-2001 10:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-19-2007
rakeshou rakeshou is offline
Registered User
  
 

Join Date: May 2007
Posts: 75
Smile Hard to understand

Quote:
exec 4>&1
ftp -nv >&4 2>&4 | &
didn't get what it does.

please explain.

thanks

Last edited by rakeshou; 10-19-2007 at 11:14 AM..
  #2 (permalink)  
Old 10-20-2007
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
Quote:
Originally Posted by rakeshou View Post
didn't get what it does.

please explain.

thanks
I wrote the script using some functions from posts on these forums, that bit was something that Perderabo came up with I think... It is a bit confusing, thats why I added an explanation for it at the top of the script. It think thats a good explanation and I wouldn't know how to explain it any differently.
  #3 (permalink)  
Old 08-29-2001
LowOrderBit LowOrderBit is offline
Registered User
  
 

Join Date: Aug 2001
Location: CA
Posts: 23
Ftp

thanks for all of the help.. i guess i should have mentioned that i am running sco openserver.. i dont know if it matters or not, but the more information the better.... anyway, it looks like the best way to do this is to set up a script and use crontab..
manually, i was using the get command from the back up machine, but if its all the same, put from the production machine will work fine.
now, its time to get down to the creation of the script and setting up cron to run it...
my unix background is about three weeks, but i have been an (i apologize in advanced) NT admin for over a year, so please forgive my ignorance.
anyway, if any of you would like to assist me in setting this up i would be very gratefull... This website, Unix: the complete reference, and sco unix in a nutshell are the only resources i have so far, so i am relying on you all a little...

thanks again...

e0--
  #4 (permalink)  
Old 08-29-2001
LowOrderBit LowOrderBit is offline
Registered User
  
 

Join Date: Aug 2001
Location: CA
Posts: 23
Vi

anyone else remember using Vi for the first time??? is this our only option???

e0-

Vi hater
  #5 (permalink)  
Old 08-29-2001
rwb1959's Avatar
rwb1959 rwb1959 is offline
Registered User
  
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
vi

Well... I first started using it 17 years ago
and all I can remember is that it was 1000 times
better than "ed"

You do have emacs as another option but I
don't think you'll like that much better.

If you have X, you should be able to find
a X text editor (perhaps pretty basic).

The thing about vi is that you can pretty much
find it on any **IX system. Anything else and
all bets are off.

I'm sure you could find a substitute on the net
somwhere but I've never looked for one myself.

Sorry about that
  #6 (permalink)  
Old 08-30-2001
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584

If you're using Linux, or have pine installed, look for pico. In any case, I too would recommend vi. Again, if you on a Linux system, and vim is installed (Vi IMproved), try the command vimtutor.

HTH
  #7 (permalink)  
Old 08-30-2001
ober5861's Avatar
ober5861 ober5861 is offline
Registered User
  
 

Join Date: Jul 2001
Location: Gettysburg, PA
Posts: 116
First off, thanks for explaining that Perderabo! I thought that was all dealing with fds, but I wasn't sure. I love this forum...

As far as editors, vi is probably the most powerful, but one of the hardest to get used to... I myself used to be a vi hater...

But there are several text editors available... kwrite (kde), pico, joe... the possibilties are endless. Several of them will color code scripts as you write them too. It's really quite fun! ... hmm... does that make me a nerd?

Anyways, don't forget crontab -e to edit your crontab. It will use whatever you have the $EDITOR set to.

In case you didn't know, here's the syntax for crontab:

MIN HOUR DAY MONTH DAYOFWEEK COMMAND

ie. 5 2 * * * /home/username/bin/script

That will run your script every day, at 5 after 2 in the morning.

Good luck and don't be afraid to ask questions.
Closed Thread

Bookmarks

Tags
linux, mtime, sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0