General :: Error Running A .sh Script When Extracted From A Jar File - Nstall.sh: Command Not Found
Jan 4, 2010
I am trying to run a script called install.sh as follows: I get a jar file, and extract it using the command: unzip filename.jar -D path/to/files then I navigate to that directory where I extracted the files, and run the command: sh install.sh (where install.sh is one of the files that has been extracted in that directory using the above unzip command.) running this command gives me an error:'nstall.sh: command not found.' among other errors in the script ( from that portion of the script that should not even be executed, which is really weird). However, instead of unzipping the jar file, if I just copied the same install.sh file to that folder, and ran the 'sh install.sh' command, the script runs fine.
View 6 Replies
ADVERTISEMENT
May 27, 2011
find /var/spool/mqueue -group abc -exec rm -rf {} ;Using above command , I delete all the files belong to group abc.Now the problem i face is that the this command gives error that some files are missing . And this error occur because after creating list of files, it pass that list to rm -rf but till that time sendmail process queue and some of files disapper from /var/spool/mqueue.
View 5 Replies
View Related
Mar 1, 2011
I have a script: `cd $FILEPATH && patch -i $TMPFILEA2$FILETMPPATH` Variable $FILESPATH is = /tmp/ardiff.AvUUGfOKa2/a/hello/ and Variable $TMPFILEA2$FILETMPPATH is = /tmp/ardiff.AvUUGfOKa2/b/hello/hello.c.patch. I don't know, why is it no working from script file, it write me message to terminal: ./ardiff.sh: line 242: patching: command not found.
But I have no PATCHING command there!!!! The paradox is, when I want to patch it from terminal (I write it to terminal by keyboard, it works).
View 4 Replies
View Related
Aug 23, 2010
I m using Redhat Linux 5......I am trying to install Nero 4 DVD Writer s/w...It is an exe file ...
I have given permission like this:
Then i execute the file like this:
Its showing error like this:
View 9 Replies
View Related
Mar 26, 2011
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
View 5 Replies
View Related
Apr 28, 2011
I've written the script below to merge only .txt files that exist in one directory into one huge .txt file and ignore other files with other extensions. now the result is one huge .txt file with all the contents of other .txt files
how can i add the File Name as a comment before each file?
//FileName
Code:
system='/path/to/my/directory'
cat `find ${system} -name '*.txt'` > outputFileDirectoryName.txt
View 13 Replies
View Related
Mar 3, 2011
i'm using ubuntu 8.4 when i want install file.tgz, i found an error like
"installpkg command not found"
even though i have typed the command like this
"#installpkg file.tgz"
so, what's the problem with this?
View 7 Replies
View Related
Jun 15, 2010
I am scheduling a command for a specific time every day.
Linux crontab format which I am using :- MIN HOUR DOM MON DOW CMD
30 08 10 06 * /home/mach/script.sh
Some presetting is required?
View 13 Replies
View Related
Apr 3, 2010
I'm trying to run backtrack from a usb drive on my netbook. Upon loading it, i get "Fatal server error: no screens found".
View 1 Replies
View Related
Apr 5, 2011
i have a site where I need to run a couple of php scripts every day..therefore I was thinking to setup a cronjob to do this. Unfortunately I get a whole bunch of errors trying to do so.
I can execute the php scripts via a command line without problem, one example would be
php /home/site/domains/stie.be/public_html/admin/cronjobs/cronjob_daily_ssh.php
however when i enter this command as such in a cronjob I get an error saying php command not found ( or something similar , doing this out of memory)
I tried to add the full path to the php command, but also this doenst work
the best workaround I found was to execute the php scripts with a lynx - dump command, but obviously this is not the right way.
View 7 Replies
View Related
Feb 26, 2010
I am completely new to linux and am trying to run a Fortran program for class. I typed in "make C=R" and it ran through a long list of things and then came up with that error.
View 1 Replies
View Related
Aug 11, 2010
I am having a problem installing SLES11 on a new server. It goes fine through the setup until it gets to GRUB, it gets me the following error message: Error occurred while installing GRUB
[code]...
I cant continue the installation without this
View 5 Replies
View Related
May 21, 2011
Ubuntu 9.10 was set up to handle the booting selection - previously I thought it was xp but Ubuntu 9.10 "did" it. The system started out as a xp / ubuntu 9.10 dual boot on a 400gb drive. xp has 210gb, ub has 80 and their is a 100gb shared storage. Xp was installed first and then I followed a guide over at linuxconfig.org to get ub installed so that I could select which OS was wanted at boot. Ubuntu manages the boot up menu (Went back to look at my notes from the original setup) The owner tried to update to ub 11.04 and afterall was said and done the machine now boots to the message
error file not found grub rescue I can't say if 11.04 was properly installed or not. Ask whatever you like and I'll give the best answer I can. I think the xp install is okay but I can't say for certain as I don't know how to boot it outside the bootmanager at startup. Data has been saved so if I have to blow it all away and start over I can but I'm hoping I won't have to.
View 29 Replies
View Related
Feb 23, 2010
I am doing some embeded linux work in ARM 9263.So I need to make a image for that board.But when I using one command "make uImage" I am getting the following error.
make: arm-linux-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
code....
View 4 Replies
View Related
Jan 3, 2010
I'm using a new Distro and after installing it and randomly searching for help on websites on how to install a .Deb file using dpkg at the konsole/terminal it says Bash : dpkg: Command not found . how is this possible ? Do I have to know about all the packages in the package manager to install this. slight difference for me ... knowing what I have and knowing if I need Apr93-323? (whatever) installed first or not ? The only thing I know is that I have the Iso image installed ... which is my linux distro . Where to go from here? because I usually go to a website site to find Software to install ...if I need it .back to the basics
View 14 Replies
View Related
Nov 6, 2010
I am using rhel5 with ip 192.168.0.254.i am using rhel on vmware 7. when i run links 192.168.0.254 then i got error "bash : links : command not found" i want to know why this error is showing? when i use red hat without vmware then there is no problem.
View 2 Replies
View Related
Mar 2, 2011
when i wget aro2220.com it displays
--2011-03-02 16:35:58-- url... 127.0.1.1
Connecting to aro2220.com|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/html]
Saving to: 'index.html'
100%
2011-03-02 16:35:58 (12.4 MB/s) - 'index.html' saved [177/177]
However, when I look into the file it is actually blank saying something like "It works! This is the default web page for this server" which can't be correct since that is not what Aro2220.com actually displays.
Furthermore, when I try to wget files I've put on the server for myself it returns a 404, file not found.
View 3 Replies
View Related
Sep 20, 2010
I had edited the bashsr file wrongly in my ubuntu while trying to put a "export" command in bashsr for javac. Next when i am writing sudo , its saying :
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located because '/usr/bin' is not included in the PATH environment variable. sudo: command not found
View 3 Replies
View Related
Nov 15, 2010
-the command to copy the file Practice.txt to a new name of Myfile.txt while in the home directory-found
-command to create a directory in the home directory-found
-say i just created a new directory called "test". whats the command to delete the test directory.-found
-command to create a blank, text file without using an editor.
-the exact syntax in Linux you would need to rename the file to a new name-found
View 4 Replies
View Related
Feb 17, 2011
I am trying to install rails 3.0.1 on ubuntu 10.10. I am getting this error towards the end when i execute this command sudo gem install rails --version 3.0.1.
View 1 Replies
View Related
Jun 22, 2010
I have a problem when I try to service nagios start, error is the following; No lock file found in /var/run/nagios.pid So when I verified the sample Nagios configuration files whit /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg, get: -bash: /usr/local/nagios/bin/nagios: No such file or directory
View 3 Replies
View Related
Mar 4, 2011
I am using Ubuntu 10.10 dual booted with windows vista. My boot is in a separate partition (sda5). My computer told me that there was limited space on that partition so I tried to clean things up using apt-get by removing old kernels. Turns out I didn't do it correctly because I consistently get an 'ERROR 15' when I shut down and rebooted my computer. I have a live-CD USB-stick so I tried reinstalling grub, (grub-install) updating the menu.lst (update-grub), and manually going through menu.lst and changing to root=(hd0,4) and groot=/dev/sda6. But I still get this ERROR 15 when I reboot.
when I do
sudo grub
find /boot/grub/stage1
find /boot/stage1
Both give me an ERROR 15 message and I'm not sure how to proceed with a diagnosis. When I ran update-grub, occasionally it used to tell me that /etc/fstab may be incorrect. Here is /boot/grub (note that stage 1 does exist!) ( this is /dev/sda5)
Code:
root@ubuntu:/# ls /boot/grub/
default fat_stage1_5 jfs_stage1_5 minix_stage1_5 stage2
device.map grubenv menu.lst reiserfs_stage1_5 xfs_stage1_5
e2fs_stage1_5 installed-version menu.lst~ stage1
Here is my problem
Code:
grub> find /boot/grub/stage1
Error 15: File not found
grub> find /boot/stage1
Error 15: File not found
I guess my main question is, if stage1 can't be found, what does that mean? What should I do next?
View 5 Replies
View Related
Jan 13, 2011
I installed ubuntu maverick a couple days ago, total newbie. After trying to install some software I no longer can access any of the Places folder and get an error - file not found.
I can open Computer, partitions and devices, just not the first 7 folders which i think are bookmarks.
Thanks for helping, U.
Ok, I eventually solved it. Appears I had inadvertently selected another program as default folder openenr. Just opening any folder with right click - open with - folder openenr reassigned nautilus and opens Places folders ok.
View 1 Replies
View Related
Jan 10, 2010
I am a linux newbie, and recently started shell programming. whenever I use 'let' command it gives me an error 'command not found'. I am using ubuntu 9.10 with bash.
View 5 Replies
View Related
Jul 15, 2010
I got the etpro 3.2.6 zip file and extracted it but there are no files at all that can be run in linux inside the folder even though it was supposed to be a linux download. Is there something I am missing and is there an easier way to install 3.2.6?
View 2 Replies
View Related
Feb 21, 2011
I have just compiled a linux build of tests in my VirtualBox VM. When I run it, I get:
bash: ./tests: No such file or directory
I did some research, and found it could permissions, missing libraries or different architecture. So I checked those:
ls -al tests:
-rwxr-xr-x 1 me me 9948598 2011-02-21 01:54 tests
file tests
tests: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
uname -a
Linux DevBox 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux
ldd tests:
linux-vdso.so.1 => (0x00007fff7db90000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f10ef14c000)
[Code].....
View 4 Replies
View Related
Sep 24, 2010
I have a log file that has an I/O Error about halfway in. It is a syslog file with Sendmail log entries. I need to break into smaller files. I tried using a simple egrep command creating new files by the date _egrep "^Sep 19" filename_ but the command hangs when it hits the I/O Error.
I tried split but it bails out when it hits the I/O Error. Is there anyway to read the file and get past the I/O Error? IS there a way to read the file from the bottom up so I can get the data from the top and bottom?
View 4 Replies
View Related
Jan 23, 2010
I am trying to install a program called libdvdcss0.0.1, it was a tar,gz2 file and I already extracted it via terminal to /opt/ but now that its extracted, I read the install readme file and tried going by those directions. Not working here is my results on that:
scott@Home:~$ cd /opt/libdvdcss-0.0.1/
scott@Home:/opt/libdvdcss-0.0.1$ /configure --help
bash: /configure: No such file or directory
scott@Home:/opt/libdvdcss-0.0.1$ configure --help
configure: command not found
scott@Home:/opt/libdvdcss-0.0.1$ make install
cd extras/libdvdcss && make install
make[1]: Entering directory `/opt/libdvdcss-0.0.1/extras/libdvdcss'
mkdir -p /videolan
m 644 videolan/dvdcss.h /videolan
make[1]: m: Command not found
make[1]: [install] Error 127 (ignored)
mkdir -p
mkdir: missing operand
Try `mkdir --help' for more information.
make[1]: *** [install] Error 1
make[1]: Leaving directory `/opt/libdvdcss-0.0.1/extras/libdvdcss'
make: *** [install] Error 2
scott@Home:/opt/libdvdcss-0.0.1$
I don't know if its something I am doing wrong or what but everytime I try and install a file this way or by the programs readme file it always goes wrong in someway shape or form. The only way I have installed a program successfully is through kpackagekit and I am desperately trying to learn terminal's language here, the only thing standing in my way from switching from windows to linux entirely is these damn problems.
View 4 Replies
View Related
Jun 29, 2010
I need to install VMWare Workstation on Fedora 13, but I keep running into the following error -
"C header files matching your running kernel were not found...."
It's looking for 2.6.33.3-85.fc13.i686 but when I did a - yum install kernel-devel I got 2.6.33.5-124.fc13.i686
when I do - yum install kernel-devel `uname -r`
I get the following -
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package kernel-devel-2.6.33.5-124.fc13.i686 already installed and latest version
[code]....
View 5 Replies
View Related
Jul 28, 2010
While trying to run the file in PHP I am getting below error. httpd.conf not found Following directories (and its subdirectories) are accesible via Apache:
View 3 Replies
View Related