LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-01-2014, 06:03 PM   #1
chechuf79
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
FTP not working on RedHat server


Hi All,

This is my first thread on this forum, hope somebody can help me.
I'm not expert on redhat Linux a need your help to troubleshoot this issue.
A server is running a script (I don't know the name, because it is a new client) that uses FTP to send the contents of a directory to an internal FTP server. No files are being received on Server B.
both servers are running RH, how can I start working on this issue? and what I can look for in the output.

Thank you
Chech
 
Old 09-01-2014, 08:15 PM   #2
abethelmy
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Rep: Reputation: Disabled
Question need more information on issue

Quote:
Originally Posted by chechuf79 View Post
Hi All,

This is my first thread on this forum, hope somebody can help me.
I'm not expert on redhat Linux a need your help to troubleshoot this issue.
A server is running a script (I don't know the name, because it is a new client) that uses FTP to send the contents of a directory to an internal FTP server. No files are being received on Server B.
both servers are running RH, how can I start working on this issue? and what I can look for in the output.

Thank you
Chech
What language or shell is the script? Are you using Perl? Is you are using bash change the script or start it by using "bash -x" where bash is the full pathname to bash, or perl, (e.g. /bin/bash -x <script_name>) and save the output so we can see what is going on. This may give a clue if the problem is with the script or some configuration issue. Use the same idea for a perl script. (e.g. /opt/local/bin/perl -x <script_name>).

You might also just try letting us know what the script is and replace any sensitive information with place holders. OR: try using rcp or scp instead of ftp.
 
Old 09-01-2014, 08:25 PM   #3
chechuf79
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abethelmy View Post
What language or shell is the script? Are you using Perl? Is you are using bash change the script or start it by using "bash -x" where bash is the full pathname to bash, or perl, (e.g. /bin/bash -x <script_name>) and save the output so we can see what is going on. This may give a clue if the problem is with the script or some configuration issue. Use the same idea for a perl script. (e.g. /opt/local/bin/perl -x <script_name>).

You might also just try letting us know what the script is and replace any sensitive information with place holders. OR: try using rcp or scp instead of ftp.
The client told me it is a bash, but don't know the name. How can I see if there is a schedule job running with this bash and the logs to check if it is running properly?
thank you!
 
Old 09-01-2014, 09:45 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
until you post any of the needed information
all we can say is
tell your client to read the manual
 
Old 09-01-2014, 11:50 PM   #5
abethelmy
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Rep: Reputation: Disabled
You are not giving enough information to help you. From what you say now you don't know when or where the script is run from. The script file must have a name. Someone, the author of the script perhaps, should know where the script is located and if it is run from crontab. These pieces of information are crucial to be able to help you. Once you know the script file name edit the file and if the first line of the file has "#!/bin/bash" or the like, then change that line to read "#!/bin/bash -x". This will permit the file to be executed and display diagnostic info which will tell you what is happening as the script executes. Good luck.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redhat as webserver, ftp server, Mail server, firewall ineth Linux - Newbie 1 09-10-2005 08:14 AM
RedHat 7.2 firewall. Redirect FTP is not working. cybermante Linux - Networking 2 06-06-2005 02:11 PM
Ftp server i Redhat israel Linux - Software 1 12-04-2003 11:22 PM
ftp server under REDHAT 7.3 rpinatel Linux - Software 0 10-21-2003 03:34 AM
wu-ftp not working on redhat 7.1 sc300t Linux - General 1 01-22-2002 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration