Thanks.
1.How does the system know this is a bash script? From the first line of the file?
2. If my working shell is Bourne, can I make the cron-job work without editing it all
Last edited by satish51392111; 07-18-2012 at 10:24 AM..
By the way, this did not work:
i am still getting the error "sh: /archive_7.sh: not found"
But, when I run
it works and does not show any error. :-s
---------- Post updated at 10:51 AM ---------- Previous update was at 08:47 AM ----------
Hi,
It is now resolved after trail and error:
The script type is bash and the first line in the script read till then "#!/sbin/bash" which did not exist in the box. So, I changed that to "#!/bin/bash" which is tha path to bash shell in the box and now the job is running sucessfully.
AKA : As shown in the error message, it was not the script-file that was not found.. It was the shell that was not found
This made my day!
Posted this just in case someone might get the same error.
Thanks,
Satish
Moderator's Comments:
Thank you for posting the solution. The location of bash was what I suspected.
methyl
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hi,
I have a file which has lines like these :
I want to trim everything from the left till ">" such that the file looks like :
If you have any ideas how to do this in 1-2 commands please help.
Thanks. (3 Replies)
Hi All
I would like to profile my application with oprofile but I can't since no samples are collected.
The kernel of my app is 2.6 on RED HAT Enterprise 5.3 (Tikanga) so OProfile is setup in timer interrupt mode
# opcontrol --list-events
Using timer interrupt.
I... (0 Replies)
Hi,
I'm using a Ubuntu Server 10.04 LTS and it works like a charm, except for the regular crontab.
Onde day a user had some problems with crontab, i analyse it and i see no problemns, all my stuff is working right. Cron is running smoth...
I only noticed it when i altered a script already... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi folks
I use a Solaris 10 box with Bash shell.
I have here a script (it works!) to list all scripts in crontab which contains the string "sqlplus":
for i in $(ls `crontab -l | grep -v '#' | awk '{ print $6 }' | grep -v '^$'`); do grep -l 'sqlplus' "$i"; done
Is there a more elegant... (1 Reply)
When I debug vmlinux with gdb, after it connect to the target, I got below output:
usbcore.ko: No such file or directory.
Error while mapping shared library sections:
ohci_hcd.ko: No such file or directory.
Symbol file not found for usbcore.ko
Symbol file not found for ohci_hcd.ko
Symbol... (2 Replies)
So I dont enounter things like:
gzip: /sometimename.gz already exists; do you wish to overwrite (y or n)?
Want to add it into a script and if there is a file aready there to just overwrite it, otherwise the script will hang unless there is manual intervention. (1 Reply)