Ubuntu :: Calling Firefox Macros From Bash?
Nov 27, 2010I would like to call some firefox macros from bash so that I can manipulate them in some scripts. Does anyone know how to do that?Currently I'm using the imacros firefox add-in
View 1 RepliesI would like to call some firefox macros from bash so that I can manipulate them in some scripts. Does anyone know how to do that?Currently I'm using the imacros firefox add-in
View 1 RepliesI have a bash script that changes the iptables.Now i call this bash script in my php code.When this bash script is running the part of code that contains iptables instruction is not running because we need to be in superuser mode(root)
View 14 Replies View RelatedI am having some weird problems with calling commands stored in a variable (I need to do this to assemble a command with a bunch of parameters automatically and then execute it).Example code that will replicate the weirdness:
$ echo "hello world" > "test file.txt"
$ cat "test file.txt"
hello world
[code]....
I would expect the output to be:
hello world
What happens to the quotes? I have tried various combinations of single quotes, escaped quotes, etc, but it seems like quotes in a variable are not evaluated as quotes when that variable is executed.
I'm trying to call a specific variable based on a user selection. For example:
Code: Select a file:
[1] foo.tar
[2] bar.tar
Enter a selection: I have already coded each possible selection to have its own variable. If the user selects 2 I need to select $SELECTED_TAR2, or if they select 1 I need to select $SELECTED_TAR1 and then do something like this behind the scenes:
Code: cp /home/user/$SELECTED_TAR2 /home/user/backup/$SELECTED_TAR2
I was thinking something like this:
Code: echo "Enter a selection: "
read -e SELECTED_NUMBER
cp /home/user/$SELECTED_TAR$SELECTED_NUMBER /home/user/backup
[code]....
Most all of this works when I execute it manually, but I cannot figure out how to get a bash script to execute it automatically.In this particular case, I am trying to build the xorg utilities. If I manually step through the process, prepending the commands with CFLAGS, LDFLAGS, etc, all of the packages build.So I created a bash script, test.sh:
Code:
#!/bin/bash
export INITFS=/initfs
[code]...
I am experiencing some weirdo problem since some time. I don't use this machine often, so I cannot trace since when the problem is there. Problem: In Firefox. Description: When a download is completed, it shows up in Downloads window. When I ask "open containing folder", it will:
-first display a warning: "This is not a CVS folder. If you did not intend to use Cervisia, you can switch view modes within Konqueror." -will open Cervisia.And how do I perform this "switch view modes" within Konqueror? I looked into Yast, and there is no way of removing cervisia, as it does not show up (but cervisia-kde4 does show up in the list, but it is not installed). I have no use of Cervisia, by the way.
I am on KDE 3.5, on openSUSE 11.1 x64. Firefox 3.6. I do have an install of KDE4 on this machine, but never use it. I followed the advice in here. First I had Nautilus as a file manager in Firefox, then some unknown one, then (following these advices) a very minimalist thing. But I still have this Cervisia critter. The problem is likely related to KDE/Konqueror, since I tried in Gnome, and it gave me no problem (it opened Nautilus instead of Cervisia).
I am calling a bash shell script from a python script trying to pass several arguments to the bash script with no succes can this be done? I have researched (google) with no clear indication of how to achieve this. Using "os.system"
View 4 Replies View RelatedI am trying to call a script say mkdir.sh into another script that will make use of the dir's which are created in the first script. I know that I could code it all together, but I am trying to avoid rewriting the mkdir script as it is long.
View 7 Replies View RelatedI've installed jEdit following instructions here [URL]... In trying to record a macro Macros > Record Macro I can see "Macro recording" message in status bar but no macro code is generated and no macro can be run. on getting macros to work in jEdit?
View 3 Replies View RelatedIs there any application which can fulfil keybaord macros which I set?I need something which can press DOWN, DOWN, DOWN, DOWN, SHIFT+UP, SHIFT+UP, SHIFT+UP, BACKSPACE. And then repeat that cycle for a long period of time.
View 2 Replies View RelatedI am using LibreOffice under Ubuntu 10.10 and Windows XP, and trying to record some macros. I can find no documentation with for recording macros. There are some forum threads of individuals, but the replies all recommend external programs. LibreOffice has its own macro recorder, doesn't it? It is on the Tools menu, as in previous versions of OpenOffice, but "record macro" is blanked out. Is this because LibreOffice 3 can't do macros? I have no idea why an external program should be needed.
View 1 Replies View Relatedwhat are self-referential macros in C?Could you give simple example for the same
View 1 Replies View RelatedIt seems GDB can not expand or show the macro expansion or its definition under the GDB debug to while debugging the program. how to debug macros under GDB?
Sample Code:
#include <stdio.h>
#include "sample.h"
#define M 42
#define ADD(x) (M + x)
[code]....
I am trying to use the 'autoconf' command and I keep getting an error message saying I need to have xorg-macros 1.3 or later. I have downloaded both 1.4 and 1.6.0 and tried to install them. Apparently all to no avail, because when I run the autoconf script it comes back as saying I only have 1.2.2 installed. Where do I start looking to figure out what I am screwing up?When I run the configure script in the util-macros-1.6.0 it seems to run right. Then I run make and it says "nothing to do for 'all'". Then I run 'make install' and it seems to run that but apparently it isn't getting installed.
Here is the output of ./configure;make;make install
linux-y52a:/home/alton/Download/util-macros-1.6.0 # ./configure;make;make install
checking for a BSD-compatible install... /usr/bin/install -c
[code]....
I am currently using Syslog-NG to make the log files in the format of: $R_YEAR$R_MONTH$R_DAY$R_HOUR and I need to be a little more granular.
I am wondering if there is a way to to divide the hour by 12, making a new log file every 5 minutes. We have been using LogRotate, but when Syslog-NG is restarted we have some data loss. Is this possible? Another solution I can think of would be to add $R_MINUTE (or whatever it is) and run a cron job every 5 minutes to concatenate the files.
I switched from 11.1 to 11.2 last month. I'm now having a smoother experience with openSUSE, with some exceptions.
One is Emacs.
A rather annoying "feature" that has appeared is the following: When editing a LaTeX file, compiling it (C-c C-c, using AucTeX macros) makes the Emacs window become shorter by one line. The same happens if I switch to some other buffer. It does not happen if I switch back to the LaTeX buffer. So, after just a few editing/compiling/checking errors sequences I find the original window half of its initial size...
A similar problem occurs when editing IDLWAVE scripts (it's a proprietary scientific data analysis language widely used in my field, but still has its Emacs macros), but only if I open an interactive IDL-shell to run the script.
So, I imagine it's not a problem related to AucTeX, although it might be related to the macros opening separate buffers/windows (e.g.: error messages) associated with the current buffer. Also, the problem does not go away if I remove my own .emacs customization files. Checking the Emacs bug lists, it seems that there are some bugs related to window resizing, although I have not been able to find exactly the same problem I am having. But, before reporting this one, I'd like to hear from fellow Emacs/openSUSE users. Just in case I'm messing things up somehow.
Currently using: Emacs v 23.1.1
Some more info: Dell Precision M65 portable workstation, NVIDIA Quadro FX1500 using the binary NVIDIA driver). Using OpenSuse 11.2 + KDE 4.3.1
I prepare an MS Excel 2007 spreadsheet which includes macros and user defined functions on a Windows machine. I transfer that file to a Mandriva 2010 machine and I load the file with OpenOffice Calc 3.2.0 and it runs the macros properly. I transfer the file to a Fedora 13 machine and I load the file with OpenOffice Calc 3.2.0 but it doesn't run the macros. I set "Tools/Options/Security - Macro Security" to Low in both cases.I am very new to OpenOffice - is there any other setting of which I am not aware?
View 4 Replies View RelatedAlthough I am new to Fedora/Linux I hope to contribute to the community once I'm on my feet with the OS.I am trying to update the graphics driver (Intel), so I downloaded the file, realized I needed to update libdrm, downloaded that, too, and am now on the step of installing libdrm 2.4.23.I am at the step of typing 'make install' on the command line, and get this error message:libtool: Version mismatch eror. This is libtool 2.2.6b Debian Debian-2.2.6b-2, but the definition of this LT_INIT comes from libtool 2.2.10. You should recreate aclocal.m4 with macros from libtool 2.2.6b Debian-2.2.6b-2 and run autoconf again.It appears that I have a newer version of libtools than is needed. How do I recreate aclocal.m4 with macros from an older libtool version, specifically 2.2.6b Debian-2.2.6b-2? Or is the problem with LT_INIT?
View 1 Replies View RelatedI have been able to use bash to initiate a google seache via firefox. I would like to either copy the source page to a file via wget or send firefox short cuts to the other terminal's firefox search page to put the html file in a directory. I seem to remember but maybe incorrectly that there exist hexadecimal codes for each keyboard shortcut in firefox. Maybe these could be echo-ed from bash to the firefox search page.
View 2 Replies View RelatedI have been having a freaky experience where Firefox appears to freeze up and brings down the terminal and any process viewer with it. For example, I can open a gnome-terminal or xterm window, but the moment I press a key, that window freezes up as well and must be force-quitted with the Force Quit panel applet. In addition, the System Monitor applet I have on my top panel freezes. It's really weird.
I began having this problem around a month or two ago. I thought it was something to do with something I installed, so a week or so ago I did a clean install, backing up my documents, Firefox profile, and GNOME settings from the old installation but wiping everything else (I'd already ruled out the Firefox profile by renaming the folder and creating a new one from the profile manager). Yet the problem persists.
I'd be happy to post any output, but as bash (including Ctrl+Alt+F1 command line) freezes as well, it's a little hard to treat the problem when it happens. One more thing: I am on a university campus which uses 802.1x encryption on both wired and wireless connections; is it possible that that is causing the crashes?
How can I open the Firefox Profile Manager. I've googled and read but the directions don't work for me:
randymanme@randymanme-desktop:~$ /usr/lib/mozilla/firefox -ProfileManager
bash: /usr/lib/mozilla/firefox: No such file or directory
randymanme@randymanme-desktop:~$ /home/randymanme/mozilla/firefox -ProfileManager
[code]....
When I attempt to extract some webpages there are far too many jscript functions and html encodings. Hence, I can manually search the page, perform select all (^A), copy (^C) it, open a prepared file (^O), but cannot figure how to paste it (&V). I want to do this from a bash script. I know how to do the search. Now how do I send these shortcuts (especially ctrl-C) to Firefox. Once I have the page copied to the clipboard, I think I can figure out how to open a file and save the clipboard to a file using bash script on the Linux side. How do I send shortcuts to Firefox? Is this done with the hex equivalent of the keystrokes?
View 8 Replies View RelatedIf one re-boots an openSUSE computer with open Firefox, the Firefox restarts when the system restarts. Actually, every application that was open, restarts.However, sometimes, Firefox does not restart.When I perform ps in bash, I see a few Firefox processes do run, but there is no graphical evidence.If I run Firefox explicitly - stll, no graphical evidence.If, however, I kill all Firefox processes, it can now be started normally.Does someone know a reason for such peculiar behavior ?
View 4 Replies View RelatedI am relatively new to scripting, but I was wanting to open a firefox window from a bash script, but have it open, then minimize. In the script, I have a single instance of: firefox & but is there a way to minimize it, versus have it displayed on the screen? I was wanting the command terminal to remain visible and it can't since the firefox window is open in front of it. I looked all over the place, including the man pages, but to no avail. I can make the height and width changes, but no minimize. Either that, or to be able to bring the terminal window back to the front automatically.
View 5 Replies View RelatedI'm booting from the bash command line, and I was wondering if there is a way to make it to where when 'gdm' is called it is always called as if it had root permissions. Just so I don't always have to type 'sudo gdm' and enter a password (which would require entering a password twice, since the gdm splash screen also asks for a password.)
View 4 Replies View RelatedI am trying to take argument from command line ic a Cprogram an give that argument as an argument to a script file which is called in that C program.Is it possible for example:
my C program is:
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
[code]....
I want to fill that blank with thevalue of argv[1] such that it will act as an argument for temp1.sh.
I have a question about calling an asm function from C....It doesn't work unless I create an asm variable to hold the value of the function in....Why?Here's the code that doesn't work...
asmfile.s - version one Code: .section .data
mydata: .ascii "this is the message!
.equ mylen, . - mydata
[code]...
I am doing a web site program and what I need is to call a C program in the PHP cloud.Do u think it would be possible? The web site would get the user input from PHP UI and pass to the C program , the C program would process the function with the user input and output the a PHP page.
View 2 Replies View RelatedI'm running the latest version of Ubuntu, and have upgraded the NVIDIA drivers to the latest ones from the website (not sure if that's part of the problem). I've got XBMC installed and it seems to be working, but I can't for the life of me get anything but Stereo passed over HDMI, according to my Onkyo 606 amp that is anyway.Can anyone tell me if it's actually possible, or if they've actually managed it, to get surround sound playing over HDMI on an ACER Revo running Karmic?
View 1 Replies View RelatedI have a strange problem on my MythTV PC: From time to time when I watch TV or a video in VLC the picture freezes but the sound will go on. After some time the picture comes back, first with some ugly artifacts in it and then completely. I've found out by letting htop run in the mean time that during these time CPU usage spikes up to a 100%, I also identified the process causing it (see attached screenshot)
Code:
/usr/X11R6/bin/X :0 -br -audit 0 -auth /var/lib/gdm:0.Xauth - nolisten tcp vt7"
but I have no idea what it does or why it behaves that way. Can someone fill my gaps here? By the way I'm not running Mythbuntu, but Ubuntu (gnome) with a mythback- and -frontend (don't know whether that's relevant though). I have a nVidia graphics card and a dual screen setup.