Firefox profile got corrupted? can't run cgi scripts anymore

Something happened recently that hosed my ability to run cgi scripts from my firefox profile.  If I browse to my local webserver at http://localhost/blah I was able to run a cgi script.  Now for some reason, firefox asks me if to save the script rather than running it.
Opening monitorix.cgi
You have chosen to open monitorix.cgi
which is a: BIN file
from: http://localhost
Would you like to save this file?
[Cancel] [Save File]
If I load firefox with a fresh profile, I am able to run the cgi script with no such problems.  I don't want to create a new profile to solve this.  Does anyone know which setting controls this behavior so I can fix it?
Thanks!
EDIT: this is too weird.  If I browse to http://reborn/blah (reborn is the hostname of my local PC) rather than http://localhost/blah, the script runs just fine!  What's going on?  Again, this localhost problem only affect my user's firefox profile.
Last edited by graysky (2010-02-06 19:52:44)

Same thing seems to be true when I try connecting to other PC's on my LAN.  If I use their hostname I get nothing, if I use their IP it works.
Browsing to --> http://mars/http will result in firefox trying to connect "transferring data from mars..." and it hangs as such forever.
Browsing to --> http://192.168.1.101 will result in the page loading perfectly.
If I repeat the above using a new profile within firefox, everything works!  I'm at a loss to explain it.
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost reborn
192.168.0.101 mars
Last edited by graysky (2010-02-06 19:56:50)

Similar Messages

  • Running cgi script placed on one machine by a web server installed on anoth

    I have weblogic installed on machine 1 and
    CGI Script placed on another machine 2.
    Is it possible for Weblogic to service/run CGI Script placed on machine 2. If so how can we do it.

    Mah
    I don't know about Weblogic, but here is some code that POSTs to a CGI script (XXX.pl) with a few parameters and retrieves part of the result (and HTML table) in a large string.
    Maybe you could use this kind of thing:
    protected String getTable(String hostID, Interval interval) throws IOException{
    StringBuffer query=new StringBuffer(100);
    Socket s = new Socket("some.host.com",80);
    BufferedReader in = new BufferedReader
    (new InputStreamReader(s.getInputStream()));
    PrintWriter out= new PrintWriter(s.getOutputStream());
    Calendar c=Calendar.getInstance();
    c.setTime(interval.getStart());
    query.append("s%5fm="+MonthConverter.int2mmm(c.get(Calendar.MONTH)));
    query.append("&s%5fd="+c.get(Calendar.DAY_OF_MONTH));
    query.append("&byear="+c.get(Calendar.YEAR));
    query.append("&Report=Submit");
    out.print("POST /cgi-bin/XXX.pl?site="+hostID+" HTTP/1.0\n");
    out.print("Accept: text/html\n");
    out.print("User-Agent: yourapplicationname\n");
    out.print("From: myemail@myhost\n");
    out.print("Content-type: application/x-www-form-urlencoded\n");
    out.print("Content-length: "+query.length()+"\n\n");
    out.print(query.toString());
    out.flush();
    String line;
    boolean finished=false;
    boolean started=false;
    StringBuffer resultBuffer=new StringBuffer(1000);
    while ((line = in.readLine()) !=null
    && !finished) {
    if (line.indexOf("Tmin,Tmax and Precipitation amount")>-1)
    started=true;
    if (started)
    resultBuffer.append(line);
    if (line.indexOf("</HTML>")>0)
    finished=true;
    out.close();
    in.close();
    return resultBuffer.toString();

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • [Solved it] Unable to start Firefox/profile is corrupted

    Edit: For some reason, I could solve the problem with chkdsk; the folder is now okay again and I can also start Firefox with no problems (although I would still like to know why this even happened), but thanks anyway!
    Hello, some minutes ago I tried to start Firefox and got the "Firefox is already running, but not responding" message. I thought this was strange as I had only just started the computer and now matter how often I try, Firefox will only shortly show up in the task manager and disappear after that. But even after trying to start it again, I get the same message...
    I thought maybe there's a problem in the Appdata folder and when I tried to access my profile there (in roaming), I'll get a message saying that the path does not exist and the folder cannot be accessed and also that the file or directory may be corrupted. By the way, the profile under local seems fine. After that, I also tried deleting the Temp folder and updating the Firefox version, but that didn't change anything.
    At first, I thought there may be an issue with the folder being "read-only" and that's when I saw that apparently the size of the profile folder is 0 bytes... If that is the case, I can imagine that Firefox cannot start, but why would it say that it's already running? And apart from that, I have no idea what could have caused this as everything worked fine just a few hours earlier. I just now also tried starting Firefox on a different account here on Windows (7), and there were no problems, either.
    I save my profile every few months so I really don't want to delete the profile folder >< I even just copied the last backup (only three weeks ago) somewhere else within the profile folder, so that too is inaccessable right now...

    Very nice work.
    These add-ons can be a great help by backing up and restoring Firefox
    '''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link}
    FEBE allows you to quickly and easily backup your
    Firefox extensions, history, passwords, and more.
    In fact, it goes beyond just backing up -- It will actually rebuild
    your saved files individually into installable .xpi files.
    It will also make backup of files that you choose.
    '''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link}
    Import/Export extension preferences

  • Can I run perl scripts on a iplanet App Server instead of web server

    Hello,
    We have some perl scripts running on a iWS 6.0 in DMZ (Tier1) which acess Oracle Server(Tier 3). I want to restrict machines on DMZ access Oracle server directly. Instead I want all the database calls to orignate from iPlanet App server on Tier 2. To make this happen I have to run Perl scripts on App server. Is this feasible as the J2EE iPlanet App can run only C++ or Java.. Any leads helps me lot..
    Thanks
    Sudhir Nallagangu

    According to the J2EE specs you should use EJBs and Servlets in the iAS! Running a perl script for db access sounds like good old cgi times.
    But generally it is possible to call a perl script from within iAS. But don't do it!

  • Can't execute cgi scripts outside the default

    I had this working fine on my old imac.
    On my new mac (Running Latest Lion)...
    I edited /etc/apache2/httpd.conf
    Updated
    User wtfuser
    Group staff
    Updated
    DocumentRoot "/Users/wtfuser/Sites"
    Updated:
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/Users/wtfuser/Sites">
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        Options Indexes FollowSymLinks MultiViews ExecCGI
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        AllowOverride None
        # Controls who can get stuff from this server.
        Order allow,deny
        Allow from all
    </Directory>
    I can execute cgi scripts if they are placed in /Library/Webserver/CGI-Executables
    But if I put a test.cgi file inside /Users/wtfuser/Sites/test.cgi
    I get permission denied and errors:
    [Wed May 02 22:38:45 2012] [error] [client ::1] Options ExecCGI is off in this directory: /Users/wtfuser/Sites/sandbox/test.cgi
    [Wed May 02 22:38:45 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:07 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:14 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:24 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:25 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:25 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    Any help is appreciated

    I will send an update.
    I changed this line
    ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Users/wtfuser/Sites/$1"
    This allowed me to successfully change the location of cgi scripts to a more convenient location, or simply because I wanted to do it! Just because!
    It seems like the AddHandler, and the ExecCGI isn't working. This should allow me to run .cgi files from anywhere, regardless of the script alias.
    So I'm open to suggestions as to why this isn't working.  FYI. I copied my httpd.conf file from my old imac running lion onto my new imac, and it still didn't work. But it works as expected on my old imac.
    Confused. But at least I have a work-around and I know the httpd.conf file I'm modifying is the right one, etc...
    ANd what in gods name is that crap with the favicon.ico?
    This is a brand new out of the box imac, or so I thought. Is this normal??

  • How can I run a script last?

    Hiya,
    I have a single backup job running a single dataset. That single dataset has an include statement to include a dataset directory, which holds individual datasets for the several hosts I want to back up, each with potentially different parameters. This works well, the hosts back up in some order (I don't care), everything's happy.
    However, what I want to do is add a step on the end of this process to run a report on the admin server after all the backups are complete. That is, to run a script once, last.
    If I add an "after backup" command in the dataset, it runs it (as stated in the manual) on the client servers, after every backup, which is no good to me. I've tried creating a separate job and scheduling it at a lower priority a few minutes later than the backup job, but that seems to just run when it feels like it, I presume because there aren't any conflicts so why shouldn't it?
    Can anyone advise how I should be doing this?
    Related question... I've tried putting an "after backup" step on the Catalog backup job, but that appears to get run twice (I presume because there are two "include" steps in the catalog dataset)! Is this expected? How can I get it to just run once, after the catalog backup is complete?
    Thanks,
    David.

    Thanks Donna, but... no. It didn't work.
    We've actually purchased a license for OSB, so I've fired this question at our official support channel now, and they came back with the same answer at the same time (are you the Oracle techie looking at my problem, by any chance?). For the record here's (with some tweaks for readability in this context) what I've sent back in response to that article.
    From the article, I thought perhaps the following might do the trick:
    include dataset /Hosts {
    after backup optional "/usr/local/osb/pre-n-post after-fsd-hosts mail"
    But, from the log:
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 1 - open brace appears where not allowed (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "include dataset /Hosts {
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 3 - bad nesting (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "}
    So it appears I’m not actually allowed to do that. I don’t understand why that would be.
    The only other idea I have is to include a dummy backup step, backing up something really small (because OSB won’t let you run a backup without backing anything up - sigh!), tack a script onto that, and hope like heck OSB decides that it should run that last. All the documentation I’ve read gives the impression that datasets are all about scope, not order, so I’m not altogether confident that this will work. In any case, it seems a pretty kludgy way of doing it! And, given the next paragraph below, I’m not all that sure it’ll work in any case.
    My idea of scheduling a catalog backup for five minutes later than the client backups, with a lower priority, so that it runs when the client backups finish, also has a flaw - if I use two tape drives in parallel, it runs the catalog job in parallel with the last client job, which is completely useless. I want to put on the end of the tape a backup of the catalog as at just after the client backups, so that in the case of a disaster I can restore that and I’ll be good to restore everything else.
    In addition to being completely useless for the purposes of putting an “after” catalog backup on the end of the tape, it’s also completely useless for the purposes of running a script last - I tried the following:
    include catalog {
    after backup optional "/usr/local/osb/pre-n-post after-catalog mail"
    This ran the pre-n-post script twice, once for each component of the catalog, which is altogether not what I want it to do.
    I can’t think of any way to achieve a catalog backup on the end of the script except for scheduling it for some time later and hoping the dataset backups always finish by then. Ugly.
    The only way I can think to achieve the run-a-script-last is to munge all the datasets together into one humongous dataset file, and do stuff as in the article to try to bend OSB to my will (again, hoping that OSB obeys the order of statements in the dataset). Which, when I’m given the ability to use “include dataset /Hosts” to make it easy to maintain, seems a bit of a mean trick to pull on me. And, again, with two tape drives available I’m not at all sure it’ll work in any case.
    I'll post further results as they come to light...
    David.

  • How can I run a script on suspend/resume?

    I'd like to run a script when a machine is about to suspend and another after it resumes. Is this possible?

    You can pipe the results of Out-Command to Out-File (or Export-Csv, etc.)  I'm not sure what kind of objects you're expecting from this script, so I'll err on the side of caution and use Format-List * in the example:
    Invoke-Command -ComputerName $servers -FilePath c:\copy.ps1 |
    Format-List -Property * |
    Out-File -FilePath $home\Desktop\copy.log

  • How Can I run a script to all servers in my servers list

    Hi Guys
    I have a Servers list:servers.txt , it's including all servers i need to run a powershell script,how can I use the powershell to run a script on those servers? thank you.I just start to learn about powershell.

    You can pipe the results of Out-Command to Out-File (or Export-Csv, etc.)  I'm not sure what kind of objects you're expecting from this script, so I'll err on the side of caution and use Format-List * in the example:
    Invoke-Command -ComputerName $servers -FilePath c:\copy.ps1 |
    Format-List -Property * |
    Out-File -FilePath $home\Desktop\copy.log

  • Launchd - can it run a script when users log in OR switch?

    I'm hoping to find someone who knows all the gory details of launchd. Here's the why and what: I'm trying to coerce Aperture into letting two users on the same computer share the same Aperture Library, both able to import photos and see and use what the other has done. Initially it is no problem, change the permissions so everyone has read/write/execute, put the Library in a common area, and point both person's Aperture at it. The problem is that Aperture changes permissions of things inside the Library as you use it, and especially when one person imports, the other person can't see that stuff.
    So I want to run a script whenever someone logs in or becomes the active user by fast user switching; the script will simply change ownership and permissions of the library and everything in it to restore full access.
    After days of research and testing, I made a test launchd plist file (this is the configuration file or agent that launchd looks at and runs your script when criteria are met). It sits in /Library/LaunchAgents/, here it is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>org.jim.test</string>
    <key>LimitLoadToSessionType</key>
    <string>LoginWindow</string>
    <key>ProgramArguments</key>
    <array>
    <string>/Library/Scripts/testscript.sh</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/Users/jim/Desktop/test.err</string>
    <key>StandardOutPath</key>
    <string>/Users/jim/Desktop/test.out</string>
    </dict>
    </plist>
    The actual test script is sitting in /Library/Scripts/:
    #!/bin/bash
    echo "org.jim.test.plist was run at `date`"
    So if the plist is loaded and the script run, the date and time are written in the test.out file on my desktop. This thing runs great when a user logs in. The problem is, it doesn't run when users switch by fast user switching. In reading the documentation, it was vague about this, whether that could be done; I thought it could.
    Can anyone help with a way to get the script to run when any user takes control by any means? As an added complication, which I'll worry about later, the script has to run as root because it's the only way to get the ownership and permissions changed.
    Thanks,
    Jim

    BobHarris is the MAN. ACLs seem to have worked. I put the Aperture Library in /Users/Shared/ApertureLibrary, restored the regular permissions as best I could (me as owner, staff as group, 755), pointed each person's Aperture to the library, then proceeded with the ACL magic. First I created a group for my wife and I, called 'aperture', in the Accounts preference pane. That was to simplify the ACLs (one entry instead of 2) and so that other users (son) aren't able to muck it up.
    It took one stinking Terminal command (note that 'aperture' at the beginning of the quote is the group, not the program, folder or library):
    chmod -R +a "aperture allow list,addfile,search,delete,add_subdirectory,delete_child,file_inherit,directoryinherit" ApertureLibrary.aplibrary
    I was unsure whether this list of permissions was necessary or sufficient, but it seems to have worked so far. Both users can access the library. I imported a different picture by each user, and the other user could then see and delete the picture imported by the other. This was not possible before.
    Bob, thanks for the great idea. After a little more testing I'll post a complete how-to in the latest "how do we share Aperture" thread, and give you due credit. The bad news is all the launchd fun is over
    Jim

  • Can not run shell script

    Hello firends,
    I have one simple script to run orbd and one java program: I can not this script on RH linux.
    #!/sbin/sh
    case "$1" in
    'start')
    /bin/orbd -ORBInitialPort 2600 &
    sleep 5
    /bin/java NamdServer -ORBInitialPort 2600& --------This can not run.
    echo "Server is up."
    'stop')
    echo "Usage: $0 { start | stop }"
    exit 1
    esac
    exit 0
    I cound not see the process of "java NamdServer" using ps -lef after run this script. I also tried the following option with -classpath, it did not work either.
    java -classpath /disk/programs/namd_server_sparc/:. NamdServer -ORBInitialPort 2600
    java -classpath . NamdServer -ORBInitialPort 2600
    Thanks a lot.

    Hi
    When you try to execute the NamdServer do you get any output as it tries to start ? or does it fail
    silently?
    You might need to try and find out if you can run NamdServer in a verbose mode where it tells you whats its
    trying to do.
    Alternately. you can use the truss command ( man truss to find out more ) on your script.
    regards

  • Can "Planners" run calc script from the Planning web?

    This is probably a really naive question.
    However, can planners run a simple calc script(created in Essbase/AAS) from Workspace/Planning Web? If so what access would they be need to setup in Shared Service?
    Or do we have to convert the calc script into a Business Rule and then grant access to the users?

    John,
    Here are the roles that i assigned my user and he can view/launch the calc scripts from Planning Web without actually being an admin( i think)
    Analytic Servers : server access
    Business Rules: Administrator
    Planning App : Interactive User
    APS : Provisioning Manager
    I would also like to conver the calc script to a BR as suggested, but not sure why i see no users available in the Business Rules-> administration tab.
    As indicated above, the use has been provisioned as a BR admin!
    Also, i tried refreshing the app with filters, refreshing the user list from BR->admin(right mouse), de-provision and re-provision the user! Any ideas??

  • ID CS5 on Mac 10.5.8 can't run java scripts from User folder

    I seem to have a problem with my java scripts in ID on my Mac. I store them in my user scripts folder, but while I can run any applescripts in the folder, doubleclicking on any of the java scripts gets me exactly nothing. If I open the scripts in Extend Script Toolkit and run them from there, they will work, but I can't run them from within ID. The scripts in the Sample Script folder work. I've tried changing the script extentions, I've opened them in the toolkit and resaved them. Still no response at all when I doubleclick on them in the scripts panel. Any idea what could be wrong? I can run the same scripts from within ID on my Windows laptop, so I don't think the scripts themselves are at fault. In fact, I just moved them into the Sample scripts folder, and they run with no problem. Does the User script folder just not work?

    Not sure what a screenshot will tell you, but here you go.
    Well, I was hoping that the icon next to the scripts would be instructive.
    Apparently not, though!
    You said the same scripts work fine if you move them into the Application Scripts folder, specifically the Sample Scripts folder. I assume, then, that the sample scripts also break if moved to the User Scripts folder?
    Is your User Scripts folder (and thus your home directory) on a non-local (network) filesystem? Are the permissions on it wacky? If you Reveal In Finder it, and Get Info, do you see anything out of the ordinary?
    What if you delete it (err, move it aside) and recreate it?
    This seems pretty strange...

  • Running CGI scripts

    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

    Marta,
    Thanks for your reply. I followed your advice, it still complains
    cgi-bin: Failed to exec CGI script:ntcgi.cgi
    Any ideas?
    Raja
    Marta Ramos wrote:
    Hi,
    I had the same problem. Try this:
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin/reports
    And access to the cgi script as
    http://<host:port>/cgi-bin/ntcgi.cgi
    Do not ask me why, but WebLogic do not admit directories after
    the cgi-bin directory at the URL. That is why he is trying to
    execute the cgi script "reports".
    Hope this help you.
    Marta.
    Raja Ramanathan <[email protected]> wrote:
    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

  • I downloaded Firefox to my Macbook, but when I drag it to the dock and open it, I get a blank Firefox window and so can't run Firefox.

    Firefox shows properly downloaded with 18.7 meg. I dragged from the download folder into the Applications folder. When I try to drag from the Apps folder to the Dock, Firefox will not stay in the dock but instead shows on the desktop. When I click on the Firefox logo on the desktop, a Firefox window appears, with no options to do anything.

    I downloaded firefox again, deleted the earlier version, and now firefox is working properly.

Maybe you are looking for