making autosricpt for logging and send them to windows using ftp
Code:
#!/bin/bash time_sch is 10, the file name is autoscript i put that file in /root and then i chmod 755 autoscript Code:
chmod 755 autoscript can you help me?? |
you might have some problem with /bin/bash or is not properly set in the script : #!/bin/bash check it.
|
Quote:
Before you ask, to put code tags you can go in advanced mode (see the button at the bottom of the "Quick Reply" box) select the text you want to embed and press the # button from there. Or put the code tags explicitly in the text as in the following example: [CODE]$ echo Hello vodka33us\! Hello vodka33us![/CODE] which will result in Code:
$ echo Hello vodka33us\! |
This question may sound stupid to you, but
Have you copied the contents of file from some windows based editor like wordpad to your linux box? OR Have you open/modified file on windows and transferred to linux using ftp ? ==== Also try running `which bash` and `whereis bash` for knowing correct path of bash. ==== There are some other things also, which i am not able to get: Quote:
Because `tail -f ...` is used for runtime log file entries. |
Try to remove the "-f" from tail and then try to run the script like this:
sh -x autoscript or sh -x ./autoscript Good luck! |
All times are GMT -5. The time now is 12:02 AM. |