OpenSUSE :: Path Not Working When Executing From Script?
Jul 26, 2010
I use tcsh. When I execute by hand a command that is in my path...located in say "~/bin/myscript"....the command executes without an issue. I don't need to use the absolute path "~/bin/myscript", I can simply type the command "myscript" since the path "~/bin" is in my .tcshrc file. When I execute the same command from a script, I get a "command not found" error. A similar issue is when I use the absolute command, but a library necessary the programs' execution is defined within my .tcshrc file. I'll get a library not found error.
View 5 Replies
ADVERTISEMENT
Jan 4, 2011
I've been looking around the net for executing a shell script. My basic understanding is that after setting executable permissions and providing a path (#!/bin/sh) in the first line of the script, I can type ./myscript to execute instead of sh myscript. This is not working for me. I can run "sh myscript" but not "./myscript" even though I know for sure I have across the board execute permission and my sh path is correct. I'm working on a redhat linux station.
View 6 Replies
View Related
Aug 20, 2010
I have the following command:ssh $USER@$HOST "ls /ops/pkg/ec/`grep "PKRTS" /ops/pkg/ec | awk '{print $1}'`* > /tmp/tmp_file"What the above SHOULD do..is, ssh to the host then execute the command.The command should first execute the grep and awk between the back ticks, and generate a file name, then ls using that filename* and write that data to a temp file.However, it executes the grep and awk before even SSH'ing and the command that goes to the server is simply an "ls /ops/pkg/ec/* > /tmp/tmp_file" since the grep and awk return nothing on the local machine.
View 1 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Apr 7, 2010
im searching for this answer now a pretty long time and i know that many similar questions where asked and i all looked themIm trying to run a the command "vncserver" on our opensuse11.2 server when its booted.many posts here endet in "put a sh script into your /kde4/Autostart" but that didtn help for me because the server runs without a screen and normally nobody is logged in. When i logged in that worked fine.i also tried to add the command "vncserver" to "/etc/init.d/boot.local " but that didnt work too. i think its to early executed to work.i also tried to activate the service to start up at boot with chkconfig vncserver start but the service vncserver is "unknown". when i type vncserver into the console after logging in everything is alright.you see i really tried a lot and searched a long time at google and in this forum but nothing worked
View 4 Replies
View Related
Dec 19, 2010
I setup Dokuwiki (local use only) and have done some testing. The following works under Windows in IE and Firefox: (Firefox needed some tweaks to open local links. no errors in the console)
[URL]
But it does not work in Ubuntu. I get Firefox can't find the file at ///192.168.0.150/images/test.jpg I have to use the locallink plugin, and several clicks, and this syntax for it to work in Ubuntu. [URL] I hate having to open each link using several clicks and even more so, having to make two types of links in my wiki posts! (SMB:// does not work in Windows.)
192.168.0.150 is a WD NAS. I will also be setting up my software RAID 5 that runs on Ubuntu to hold data for clickable in links on the wiki as well. What do I need to do to get Firefox/Ubuntu to be able to click on and use file://///192.168.0.150/images/test.jpg
Wirehsark shows NO PACKETS when I click on the link file://///192.168.0.150/images/test.jpg, so Firefox is not even trying to find the file! [URL] I have tried epiphany and it did not work either. (No packets being sent either.) This seems to be a Linux issue.
View 1 Replies
View Related
Mar 3, 2011
For example, what I have now as a root user on CentOS 5.5:
# setsebool
bash: setsebool: command not found
I need to enter /usr/sbin/setsebool to get it working
The same is with some other commands:
# service httpd restart
bash: service: command not found
And so on. I know, that I need to add path somewhere, as I did it before on FreeBSD. But I don't know where?
View 2 Replies
View Related
Mar 10, 2011
I have been having some problems with virtualbox starting. So here is the issue: When I start a VM I get the following: Code: Kernel driver not installed (rc=-1908). The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. reinstall the kernel module by executing
[code]...
I am seeing quite a few entries about the usb. I am not sure if that is common or if its unrelated. I am running x86 11.3, and virtualbox 4.0.4 I have tried to uninstall, and even go back to 3.2
View 8 Replies
View Related
Dec 31, 2009
I was running openSUSE 10.3 using yast2-firstboot and everything worked perfectly. I have since upgraded to 11.2 and after a post on this forum I was able to get yast2-firstboot to run. The control file was moved to touch /var/lib/YaST2/reconfig_system instead of touch /etc/reconfig_system. All is well there and firstboot does run. I have a script that basically sets up the hostname, IP addresses, etc on the machines. This worked in 10.3 but in 11.2 it doesn't execute. I can manually run the script which I have defined in the /etc/sysconfig/firstboot file. The SCRIPT_DIR="/usr/share/firstboot/scripts" I noticed a new entry this file labeled - # Action that should be done after the firstboot sequence finishes.
FIRSTBOOT_FINISH_ACTION="" Should I place my script here? I read the doc and you can use reboot but need my script to run first. To I just put the name of the script or the entire path to the script if that is the place to put it. On a side note. Does anyone know where the default FIRSTBOOT_FINISH_FILE="" is located? I want to use that as a template but change and add a few lines to this. I just can't locate it anywhere on the system.
View 3 Replies
View Related
Oct 14, 2010
When I execute Eclipse or Firefox remotely using ssh (on a LAN using ssh -Y user@remote-machine eclipse) they both look strange, the colors are kind of yellow. Logging in to the remote machine using NX or VNC and executing the same apps does not produce the same colors, the apps look fine. Executing the same apps on my local machine does not produce the strange colors either.The remote machine is a SLES 11 and the local is a openSUSE 11.3 (with KDE 4.5.2).This might seem like a small problem but it is annoying to work a whole day like this when the remote apps looks like **** on my otherwise beautiful KDE desktop
View 2 Replies
View Related
Jun 11, 2010
I thought that setting up the PATH variable was a must if we wanted to use java or javac commands on linux (preferably in the bashrc file), but I am able to use these commands anywhere without setting up the PATH variable.. Similarly, without specifying '.' in the CLASSPATH variable (in fact, not specifying the CLASSPATH variable at all), I am able to access class files in the same directory. How is it possible ?
View 4 Replies
View Related
Jun 11, 2010
I thought that setting up the PATH variable was a must if we wanted to use java or javac commands on linux (preferably in the bashrc file), but I am able to use these commands anywhere without setting up the PATH variable.. Similarly, without specifying . in the CLASSPATH variable (in fact, not specifying the CLASSPATH variable at all), I am able to access class files in the same directory. How is it possible ?
View 1 Replies
View Related
Jun 23, 2011
need to know, how we can display the whole (till current directory) path in below highlighted way. normally it shows only the name of current working directory after the server name.
View 3 Replies
View Related
Oct 8, 2010
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
View 6 Replies
View Related
Jul 17, 2009
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies
View Related
Feb 21, 2011
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
View 2 Replies
View Related
Apr 26, 2011
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies
View Related
Oct 21, 2010
how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.
View 2 Replies
View Related
Sep 14, 2009
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies
View Related
May 31, 2011
Current script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
View 7 Replies
View Related
Apr 19, 2009
I am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts.
View 2 Replies
View Related
Jun 12, 2011
I am not sure does the title make sense with regards to my query.I am using OS 11.4 gnome.I installed a program (PLINK v1.07) by compiling its source.i compiled the source code in the following folder using "make"
Code:
/home/reddy/Downloads/plink/
Which created an executable file plink.
[code]...
View 2 Replies
View Related
Apr 3, 2011
I tried to use scp like..scp -p 1234 111.222.333.444:/home/anonymous/asdf.asd /home/cognita/
This command asked me password and after typing password it showed Set Basic Path and didn't copy..
View 9 Replies
View Related
Apr 4, 2010
I upgraded my OpenSUSE 11.2 KDE 4.3.5.x to KDE 4.4.2 and am having a couple of issues. Not sure if I am just a bit stupid or impatient figuring them out or what... In Amarok, I used to be able to input or edit the path name under Files (i.e. Browse Local Harddrive for Content). This allowed me to quickly copy and paste a location from Dolphin / Konqueror etc. into and from Amarok for quick access across multiple applications (Especially when sorting out things). Somehow this is either missing (Not possible anymore) or I am to impatient or stupid figuring this out.
View 2 Replies
View Related
Jun 11, 2011
I want to set up a PDC on my computer using Samba without LDAP, etc. The only thing I need is to share folders between the two ridiculous computers here. I got a 11.3 laptop and this 11.4 desktop. This is the /var/log/samba/log.smbd extract:
Code:
[2011/06/11 08:29:35, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for smbd: Permission denied
[2011/06/11 08:29:35, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/06/11 08:29:35.951937, 0] passdb/secrets.c:73(secrets_init)
Failed to open /etc/samba/secrets.tdb
[2011/06/11 08:29:35.954910, 0] passdb/secrets.c:73(secrets_init)
Failed to open /etc/samba/secrets.tdb
[2011/06/11 08:29:35.955027, 0] smbd/server.c:1234(main)
ERROR: smbd can not open secrets.tdb
This is the /var/log/samba/log.nmbd extract:
Code:
[2011/06/11 08:27:48.682275, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Samba name server ANTARES is now a local master browser for workgroup XXXXXXXX.WORLD on subnet
[2011/06/11 08:28:08.700572, 0] nmbd/nmbd_serverlistdb.c:343(write_browse_list)
write_browse_list: Can't open file /var/lib/samba/browse.dat.. Error was Permission denied
I have modified in Yast the User Authentication Source to smbpasswd and specified the correct path to the file...
This is the /etc/samba/smb.conf extract:
Code:
passdb backend = smbpasswd:/XXXXXXXX/smbpasswdfile
I erased all the samba related configuration files, uninstalled samba cli/ser samba-yast cli/ser and reinstalled, reconfigured and still have same issue. It worked very well with 11.1... (I clean installed 11.4 yesterday). I thought take sources from samba, compile and then see if it works...
View 4 Replies
View Related
May 7, 2010
I've downloaded this [URL] driver and executed it with:
Code:
sudo sh path/to/file.run
The program asks me to enter the installation path, but I don't know where to install that driver (or any other program). I'm using openSuse 11.2 KDE
View 4 Replies
View Related
Jan 27, 2010
I accidentally messed my Java home path with this command:
export JAVA_HOME=
And now I don't know what the real path is.
View 2 Replies
View Related
Jun 26, 2010
I try to install some scientific software from source and get the following warning, when I run ./configure:
...
checking for javah in user's PATH... not found
checking for javah in known locations... not found
configure: WARNING: Invalid JNI include dir, exit!
[code]....
View 5 Replies
View Related
Jan 6, 2011
i'm a new on linux system and i have a problem with SUSE 9.1. I google for yast repositories to install "gcc" but i only see for release 10+. So i think 9.1 version it old version. The thing is that i can't upgrade the SO because it's a "sever" for some applications, and my problem is that i need to install Nagios, but when i type the ./configure command its says:
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
So I decided to install packages with yast, but i can't find any active repository. I very new on this, and i don't know if i'm doing right the things. Also i don't have too much practice on english.
This is the info of the SO
* uname -a:
Linux noc 2.6.5-7.111-default #1 Wed Oct 13 15:45:13 UTC 2004 i686 i686 i386 GNU/Linux
* cat /etc/SuSE-release
SuSE Linux 9.1 (i586)
VERSION = 9.1
View 9 Replies
View Related
Mar 4, 2011
Usually when i did, for example:
:~/> vi documents/<tab><tab>
i would get list of files in 'documents' dir on my konsole.
:~/> vi documents/
doc1 doc2 doc3
Bu now in 11.4 when i do that i get whole path, like this for example:
:~/> vi documents/<tab><tab>
:~/> vi documents/
documents/doc1 documents/doc2 documents/doc3
how to make it look "old" style?
View 6 Replies
View Related