I want to write a single shell script that allows me to, once executed from a panel launcher, change the image preview setting between "local files only" and never. Right now i have two tiny scripts, one for local files only and another one for never, that is:
[Code]...
and the other says string "local_only". But that means i need to have two launchers, because i don't know how to write the condition <<when set to never, change it to local only. And is it possible to make a script that also changes the launcher's icon when the preview config is set to one or the other value? That way i'd know what it is set to just by looking at it. It would act as a diagnostic and therapeutic tool XD
I changed the complier PGI to Intel. But i had some error message p4_error: interrupt SIGSEGV: 11 This error message was occured using intel compiler I don't know what is the ploblem.
I have a slave node uploading all kinds of backups to my server in the internet. Now I would like to display the actual upload and download rate to this server (not the entire nic-traffic, any protocol) in a small php-page for easy monitoring.I had a look at quite some monitoring tools and the one which kind of offers what I am looking for is iftop with a filter on the IP of my server. As I would like to periodically update a file with the actual rates, an interactive program won't do. A possibility would be to filter the packages myself using but this seems to be quite a long shot.The optimal solution would be a program or script printing out the actual upload to a host specified in the options to STDOUT
Does anyone know of a way to single-step through Bash shell scripts in order to debug? (similar to the way Windows 98 used to let you single-step through autoexec.bat)
In Ubuntu 810.. how do you set the mouse for one click to open an item..?What is that software that sets Trash's empty feature at the bottom of the right click on trash..? I had it, but I can't find it for this new install.Is there a way to default the cursor to half its minimum size, and customize its color to blues..?Is there a way to force the desktop toolbar icons to half of their minimum default size..Is thee a way to change the "Ubuntu Icon + Applications/Place/System" to just three different colored tiny spheres, without the Ubuntu icon..?
I need to execute 20 urls in one shell script and display there responses on the console and write on text file too. consider the case when url is not responding.
I have to admit that I register to LQ after I failed to search for similar solutions.let me see whether I can explain my problem clearly. I need to extract a single report from a big file. The big file looks something like this:
Report for yyyyyy Your info 999-9999999 End of Report
[code]....
I need to search for a user provided string, say 999-9999999, in the big file. Then I have to extract the single report. My logic is simple,
1) find 999-9999999 2) backward search for "Report for", note down the line number 3) forward search for "End of Report", note down the line number 4) extract the record by using info found from step 2) and 3).
I am trying to do this in bash, with awk and sed (I am new to both).
So for those of you who has built GCC from source would know that you can't install GCC without an existing GCC. So my question is, what would happen if all computers in the world suddenly just died, and all you had was the computer in front of you, and a copy of GCC 4.5. How would you install that?
I ask because I would like to install GCC 4.5 on my old powerbook G4 mac without installing a binary GCC provided by Tiger 10.4 disks. I would like to build GCC from source, without an existing GCC to complicate updating.
I'm slightly puzzled trying to change the icon on my single "gnome main menu" button. I've added it to a panel and gone to gconf-editor aps>panel and there is no objects folder on my home pc (which is a installed version of 9.10). In work I do the same steps on an install of 8.04 and it works fine. The only difference I can think of is on 8.04. I add the menu to the bottom panel that ubuntu has by default and at home its a panel I've added. I cant get a custom icon for my main menu in 9.10!
My compiler won't find <new>. Since it's such a basic function, I'm a bit confused. Is <new> supposed to be in a file of its own? Where do I find it? And if it turns out to be missing on my computer, where can I find a <new> one? Or do you see anything else that I do wrong?
After some trying out, it seems I can't find stuff like iostream or any other basic stuff either. The compiler is prolly looking for them at the wrong place. Does anyone know how I change or add paths for the compiler to look in when using the "<>" operator?
At least I think it's called single-user mode. I don't have a GUI for my CentOS install. It boots up to a terminal. The text is too big though. Is there any way to reduce the text size?
I have this dump script that performs either full or incremental backups depending on the day of the week. From what I have read, when using dump you should drop to single user mode to help prevent the backups from being inconsistent before you issue the dump command. What I want is the script to drop to single user mode, perform the backups using dump, and then go back to runlevel 3 after the backups complete.
I know when you enter init 1 to drop to single user mode, but doing so within a script reboots the computer and drops it to single user mode and the rest of the script doesn't complete.What would be a good method for me to be able to accomplish what I want to do? Do I need to run other scripts that would call mine?I am running Centos 5.4
we are using a tool to simulate a basic computer, called TOY now this TOY has its own compiler and linker, which i will need to use in order to use *.asm files in this simulator how do i add the commands "toyasm" and "toylink" to be used in my linux bash? i have the files "toyasm" and "toylink" provided by the lecture's materials, and already managed to copy them into /usr/bin, where i found the "gcc" compile command already (been using that one before) but now i get "permission denied" when i try to use the new ones. what to do when i want to add custom compilers to my system?
I need g77 compiler to run few programs. I tried to install g77 by sudo apt-get install command , but i failed to do as it showed there are no packages of g77. how can i install g77 in Ubuntu. Is there any alternative process to install g77 from any tar file.
I cannot install g++ on my ubuntu...i can't find the option foe the G++ compiler in the Ubuntu Software centre...and while typing G++ in the terminal I get a message that tells me to add some pentium...
Im using Fedora 10, and I need to install a c, and c++ compiler. I've downloaded codeblocks, but when i try to compile and run the code, nothing will happen. What other compiler should i use? what is the best c++ compiiler for fedora?
currently i am trying to downgrade my version of g++ compiler in my ubuntu 9.10using synaptic, deselecting current 4.4.1 version and adding desired 4.1.2 version will result in g++ not being recognized in terminal anymore :(also sudo apt-get g++will only get me the latest 4.4.1
i have installed fedora linux 7.0 but i have done mistake i guess i m unable to use gcc compiler,i cant run my programs using cc.so how can i install it now over fedora,any links to software or i should reinstall it again
i'm pretty new to ubuntu. I was "playing" trying to change my default shell and failed. Now, after logging in, i open a terminal window and type "su". Ubuntu asks me a password, i give my password and i get this error "unable to execture /bin/bsd-csh: file or directory does not exist". Any idea on how to solve this problem restoring my old shell.
I've had my prompt change whenever I :sh (:shell) out of VIM, but can't for the life of me remember how?. The idea is to change the prompt to something like [SH] <your usual prompt here>, so that I know that VIM is running in the background.. I often logout of the shell, because I think VIM is open.
Canceled a sys backup in progress now my Waste bin is at max and must be emptied.However OpenSuse 11.3 contradicts itself by claiming there is 0 in the waste bin? Perhaps there is a Bash command that would solve the problem