General :: Open A Script File (same File Every Time)?
Aug 12, 2010
I need to goto a folder, open a script file (same file every time). The file has different function calls, I need to comment all other function calls and just un-comment the one I want to use.
I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.
I have a newly installed Kubuntu 10.04 running here, works fine except for one thing.
I have a kind of "fileserver" and it has a samba share that I have mounted in the home folder of my desktop computer ("/home/xxx/fileserver", the server is running an older version of Ubuntu, can't exactly remember what it is but the filesystem is ext2, if that's of any importance).
I have large files on the server, mostly video. When I use Dolphin (or Konqueror, doesn't make any difference) and right click one of these large files and choose Properties, it takes a LONG time to load the properties window. As if it copies the file to local hd before opening properties, or something.
The reason why I posted here and not in the networking section is, that I had the exact same setup with my previous installation which was Kubuntu 8.04, and also at least three different Ubuntu's before that. Never had this problem before, so I think my server and networking thingies are okay.
I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.
I'm currently stuck at 6.13 GMP-5.0.0 of the LFS installation. After running make, I receive the following:
error while loading shared libraries: libbfd-2.20.so: cannot open shared object file: No such file or directory make[2]: *** [libmpn.la] Error 127 make[2]: Leaving directory `/sources/gmp-5.0.0/mpn'
I am using xubuntu and there are a few types of files on website that instead of downloading and saving and then opening with emacs, I would rather when the radio button choice comes up say open with emacs. I am using xubuntu with xfce, and there is no line for a command to be entered as some ubuntu editions have. In the choice of changing the opening program from mousepad to something else, it says search and allows to navigate to find a program, but I cant find emacs anywhere not in etc/ or elsewhere. So where is its executable to direct the program chooser to?
I'm trying to install PCSX2 (PS2 emulator) and I get the following error: ./pcsx2: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
I've followed the instructions here http://pcsx2.net/downloads.php and believe I have all the dependencies installed. My system has the following file:
error message when I ran my program that I couldn't open my local file. I have two files first one is called client, second one is called server I am using named pipes to sent a message from client to the other file called server in client I used mknod() to create the two named pipes,one for read,one for write and created new thread in client using fork() spawned a child process that executed the server file both named pipes are opened the client file got the message from the user and sent it through the named pipes to the server file when the server receives the message , it needs to verfify it is correct in the server file, a local file descriptor is created to read and send this verifing message when it is not correct but I am getting an OPEN() error when I tried to open this shared local array buff and attach it to a file descriptor where the message is kept why do I get this error in server file
int main() { /*both named pipes are open*/ rfd=open(IFIO1,0); wfd=open(IFIO2,1);
I am using RHEL 5.I have a very large test file which cannot be opened in vi.The content of the file has some 8000 lines.I need to view ten lines between 5680 to 5690.How can i view these particular lines in a large file.what is command and option i need to use.
I have a remote Debian 5 machine on which I'm trying to extract a tar-file (Django 1.2.1, but that's unimportant). The first 1300 or so files extracts just fine (of about 2800 in total), after which errors liketar: Django-1.2.1/tests/urls.py: Cannot open: No such file or directoryshows up for the rest of the files, finally ending up with atar: Error exit delayed from previous errorsI use the commandtar xzvf Django-1.2.1.tar.gzI've also tried with sudo (but I'm extracting in my home directory, which I should obviusly have permissions to use without). I've tried gunzipping first (runs flawlessly) and then running tar xvf, but to no avail. I've fetched the file using wget:
I'm working with .conf files which I need to edit (with gedit for example) and an .sh file which I need to run occasionally.
And every time I open a .conf file it pops the "Do you want to run or display its content?" question.
I tried to configure Nautilus to stop prompting me every time by setting the Edit->Preferences->Behavior to Run executable text files when they are opened.
But now every time I try to run the .sh file it opens it in gedit instead of running it.
Is there anyway to set the behavior for specific file types?
Like so it'd open the .conf files in a text editor and run the .sh files?
(Maybe I should mention that I'm running Ubuntu 10.04 with Gnome)
there are number of threads floating on installation of ns2..however i am unable to get it on my 64 bit system ns: error while loading shared libraries: libotcl.so: cannot open shared object file: No such file or directory
I downloaded the demo of Penumbra Overture, it is a .sh file (113Mb). I can't open the file. In a terminal I ran chmod +x PenumbraOvertureDemo-2553.sh and then sudo ./PenumbraOvertureDemo-2553.sh and I get an error "./PenumbraOvertureDemo-2553.sh: 2: Syntax error: "(" unexpected" . The quotation marks are my own. Is the file corrupted? One of my lugmates thinks it might be a shar file, but Karmic says that it is a shell script. Another friend says that it is too large to be a shell script. Here is the code:
john@john-laptop:~$ cd /home/john/00 john@john-laptop:~/00$ chmod +x PenumbraOvertureDemo-2553.sh john@john-laptop:~/00$ sudo ./PenumbraOvertureDemo-2553.sh
When running the beta of blender 2.5, I get the following error. blender: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory In previous versions of ubuntu you could 'apt-get install python2.5' to resolve the issue, but it doesn't appear in any/all of the repositories. where I can get python2.5 for lucid-lynx?
I was looking to download "America's Army" and was doing alright until I hit a slight snag, It had an error while loading libgtk1.2, so I scoured the Internet for a way to fix this and the find command I found just told me it couldn't find the package, this is the first error I got when I tried to uncompress the "America's Army" version I downloaded:
/home/zac/.setup3597: error while loading shared libraries: libgtk-1.2.so.0: can not open shared object file: No such file or directory.
When i open any .pps file with OO.org (impress), it starts a slideshow and it doesn't let me edit the file. If i click on "end slideshow", the program exits.i ran it in a terminal and there's no error messages.[EDITED]Well, i found the answer, just renaming it to ".ppt".
I followed [URL] that thread for installing BitPim on 10.04, but am getting this error:
Quote:
Traceback (most recent call last): File "/opt/cx_Freeze-3.0.3/initscripts/ConsoleSetLibPath.py", line 35, in <module> File "src/bp.py", line 20, in <module> File "src/bp_cli.py", line 21, in <module>
I get an error when running slapt-get. The error is: "slapt-get: error while loading shared libraries: libsas.so.2: cannot open shared object file: No such file or directory".
I've booted the Slackware disk # 1 and unchecked everything except the libraries category and installed them. I rebooted and it still says this. I get this same error before I put the disk in and rebooted to install ALL libraries. I really need help. BTW, I can't load KDE.I found a pkg manager already installed called "slackpkg". But I really need help on this library issue!! I uninstalled it (slapt-get) anyway, so forget that!
after updating my system I can't start VirtualBox-OSE anymore. I get the error:
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: VBoxVMM.so: cannot open shared object file: No such file or directory
I try to remove and to re-install VirtualBox-OSE again, still the same error. VirtualBox works as root but not from a user account. The installed version is VirtualBox-OSE.i686 3.2.6-2.fc13 @rpmfusion-free-updates
I am trying to run Ansys on Fedora (64bit), but every time I do it gives me this error. "error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory"Please help as I am stuck with this issue for long.
I'm trying to use a software on OpenSuSE 11.3 (64) and am getting an error message similar to the one in the title. I did a bit of background reading on libjpeg.so.62 that the program was asking for. I noticed that I had a file called libjpeg.so.8 in my /usr/lib/ folder. I found a libjpeg.so.62 file online, downloaded it and copied to to my /usr/lib folder, but its not making any difference.
Whenever I try to install a game thats in a .run file format, I get the following error. libgtk-1.2.so.0: cannot open shared object file: No such file or directory
i have a problem with realplayer 11 i can't open it due to that error message
Code: /opt/real/RealPlayer/realplay.bin: error while loading shared libraries: libgdk-x11-2.0.so.0: cannot open shared object file: No such file or directory so how can reveal this problem
I have installed and built gazebo and it passed without any errors.I'm running on ubunto 10.10, and I installed gazebo version 0.10 (straight from their website)while trying to run it ( with a given world or without as shown below) I get the following error:
root:~# gazebo gazebo: error while loading shared libraries: libassimp.so: cannot open shared object file: No such file or directory
I tried installing libassimp again, I have installed the 2.0 version from this link
[URL]
when searching for libassimp I get the following results:
I am running after compiling a program and I find that I get the following. How best can I avoid this as i cannot run the program. I have tried removing the offending package, although I cannot find it. I have also tried re-installing. I have also tried changing FC and F90 flags to avoid the MPI version.
error while loading shared libraries: libmpi_f90.so.0: cannot open shared object file: No such file or directory
I tried to upgrade my slackware xfce 13.0 >> 13.1. I read "man slackpkg" first, and then I did exactly what I read at the man pages, my system was in init 1 mode.
The mirror I used it was the Greek mirror for 13.1. The command slackpkg upgrade-all was running ok until the "r" letter after that all packages did not upgraded because it was ERROR CHECKSUMS.md5 to all of them. Slackpkg did not upgrade all this packages but just check them and them skip them.
When everything stopped I reboot but at loading time it stops and I have this message: "libuuid.so.1:cannot open shared object file: No such file or directory."
After that I have 2 options to press control-d to reboot or to give root pass and login as root@(none):
After I login I cant connect to internet, I cant shutdown the system only reboot it from cl, I even cant go to init 1 or anything else. I dont know if I can fix the problem but I have to try...