Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.