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!
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.
Linux 2.6.32-400.21.1.el5uek #1 SMP Wed Feb 20 01:35:01 PST 2013 x86_64 x86_64 x86_64 GNU/Linux
the script starts with a
#!/bin/sh
and then exports the PATH also
the permissions are 777
But nothing actually happens when I execute it using
sh scriptname.sh
I have written scripts earlier but am not able to figure out what I am missing
My apologies, thanks for being patient.
This exports a table (80 Gig) and this takes time
when I execute the script using sh scriptname.sh I cannot see the script as a process when I do a ps -ef|grep scriptname
when I try to run it using nohup sh scriptname.sh & the screen immediately outputs
Code:
"Done scriptname.sh"
This is all that I can explain as this is all I see.
Last edited by oraenthu@live.com; 04-05-2014 at 10:31 AM.
Yes I was editing in windows based notepad ++
there is a dollar sign at the end of each line
not sure if it is abnormal
I see that in other files as well
when I run your command
Yes I was editing in windows based notepad ++
there is a dollar sign at the end of each line
not sure if it is abnormal
I see that in other files as well
when I run your command
...
i think thats fine as long as there are no ^m's.
try running it with set -xv enabled. or debug it with echo's placed before and after each if.
I place an echo and the echo executes
its only the echo that is executing, nothing else
Update:
okay the password file was missing, when I checked my mail for that subject line, I had about 20 or so mails
there is an exit after that if clause, so if password file is not found, the script exits.
That was fixed and now it works fine.
Thanks so much for your involvement.
Last edited by oraenthu@live.com; 04-06-2014 at 02:50 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.