Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i am running into few problems with the script here.
I have an FTP server, all configured, and i need to have a script that will create a folder with current dated within a tree as soon as particular user logs in. I was wondering if that is possible with proftpd.
if not, can someone suggest how to create a script that will simply create a DIR with date and autorun itself every 24 hours?
i am running Debian/Proftpd with Mysql authorization.
Is there a way to tell my script to run and make folders, replacing userA, going next to userB etc, until the end of my folder structure?
i tried mkdir ftp/user/*/`date +%m%d%Y` - using * to mark ALL, but it did not work, any ideas? thanks
after working a little more, i added few more variables to it to do and it is all ready to go.
I have another question, honestly, this is my first or second script for Linux, and after exploring some tutorials, to made it executable, but for some reason it needs me to still put SH in front,
could you suggest how to get around this?
Yeah, i got all that taken care of, even run the chmod to make it executable, but when i type. script.sh it does not run saying
-bash: script.sh: command not found.
but when i add SH in front it runs no problem, i am going to schedule this for CRON to run, but don't think this will work if i don't get it to run without the use of SH command in front.
Weird, i know that the command to run it is simple, and straight forward, but running it did not help, i was using bash scripting tutors, and nothing really worked.
Thanks for getting back to me
When you put it in cron, supply the full/absolute path to the script. cron env is minimal and won't include eg you home dir. Same rule applies to any other scripts/files referenced, unless the script takes care of that.
When i run ./script.sh
i get the following: PERMISSION DENIED
when i run WHICH - i get nothing, no return.
i guess the first PERMISSION DENIED means i have no root rights to run it? am i correct?
however i ran CHMOD u+x on my script, and it shows with a "*" in MC.
alright,Disillusionist, well i have changed the permissions to 755. and it runs with a full path and with ./ from the folder. works and does what it suppose to do. I have setup a CRON for it, like chrism01 suggested with the full path, and waiting for it to execute,
Thank you guys for your help, i will post the results there once it runs.
Thank you very much for helping me out with this problem,
i got my scripts to work and run at specific time. I had some issues mounting the NAS unit with FSTAB, so i created a script to mount and run it at boot time.