Programming :: Bash : How To Make Firefox Open But Minimize

May 3, 2011

I 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


ADVERTISEMENT

Programming :: Make A Bash Script That Will Open Up Port 23 For A Netcat Connection?

Apr 14, 2009

I'm starting to like making bash scripts. It's kewl making creative ones. Right now I'm trying to make a bash script that will open up port 23 for a netcat connection. Once there's a connection, I'd like for the script to open up xmms and play a sound effect, as well as echo a txt file to the desktop saying that a connection was made at this specific time. When I execute the script, it stops exection at the first line. So far I have this:

sudo nc -lvnp 23
while [ 1 ]
do

[code]...

View 8 Replies View Related

Ubuntu :: Make Firefox Open Only With Sudo?

Dec 24, 2010

as the tittle says, need to make firefox access only to in sudo mode, how can i do this?

View 2 Replies View Related

Programming :: Communication Between Bash And Firefox

Aug 24, 2010

I 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 Related

Programming :: Use Bash To Open A File?

Dec 12, 2010

How do I use bash to open a file, (file name as first parameter) cut n char from begin of each line, and write shortened lines to new file (outputfile name as the second parameter, n as the third parameter)

View 3 Replies View Related

Programming :: Make Bash Replace The Value Of A Variable?

Apr 18, 2009

I have a program I am writing where I have a for loop and I want to make it substitute the variable twice like:

for ((i=0;i<5;i++)) do
echo $"$i"
done

[code]...

View 3 Replies View Related

Programming :: Bash Script - Sending Shortcuts To Firefox

Aug 26, 2010

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 Related

Programming :: Make A Automated Build-script With Bash?

Apr 14, 2010

I'm trying to make a automated build-script with bash but i keep getting different errors that I can't seem to figure out. Could anyone please tell me what's wrong with this package of build-scripts? I'm posting the main build-script and attaching the rest of the scripts in a compressed form. The errors mainly comes from the scripts in "/first_installation/usr/share/siem-live/init"

[Code]...

View 2 Replies View Related

Programming :: Bash Script - Make Sure All Files Have Certain Permissions

Jan 14, 2011

How can I iterate over all the files in the current directory to check for certain permissions? This is what I have:

Code: #!/bin/bash
for file in *.tar.gz
do if [ -r "$file" ]
then echo "$file is readable"
else echo "$file is NOT readable"
fi done

But this only checks that the current user has read permissions for each file. I want to check that the group "others" has read permissions for each file. How can I do this? Is there a built in function to check if a file has read permissions for the "others" group? Otherwise, I thought I might be able to use this:
Code: $ stat --format=%a file
744 And parse the output "744" and make sure the 3rd number is between 4 and 7 (since the octals 4-7 have read permissions for others).

View 2 Replies View Related

Programming :: Make An Automated Build-script With Bash

Apr 14, 2010

I'm trying to make a automated build-script with bash but I keep getting different errors that I cant't seem to solve for various reasons. what's wrong with this build-script? I'm posing the main build-script and attaching the rest of the scripts in a compressed form. Buld-script link: [URL]

[Code]....

View 3 Replies View Related

Programming :: Make 2 Separate Arguments In 1 Bash Script?

Aug 31, 2010

This is what I have:

Code:
#!/bin/bash
#ascript.sh

[code]...

View 8 Replies View Related

Programming :: Make A Flawless Bash Alarm Script

Jan 12, 2011

I am not positive that this is the right subforum for this post. It is technically a programming question but I am not sure if this is the best place for bash scripting questions. Anyhow, I have been having trouble getting up in the morning. I am a pretty good morning person and once I am up, I am good to go. The problem is getting out of bed. Traditional alarms have just not cut it in the past; there is always an easy way to shut them off and go back to sleep.

Recentliesh, I decided to try to make an alarm script in bash that would be more successful in getting my lazy behind out of bed. I am a newbie bash scripter at best so my attempts have been very simple but have not cut it so far. Here are some examples:

[Code]....

The above script was the version of my bash alarm. It will not stop ringing until I input that ridiculous phrase. The big issue with this script was that I would input the phrase quickly and go back to sleep. It was however, much more successful than traditional alarm clocks. Another obvious pitfall was that even though control-c'ing the process would not work, the terminal could be closed and that would be the end of it. I'll get back to that issue. Here is my second attempt:

[Code]....

View 7 Replies View Related

Programming :: Write A Bash Script That Will Make Some Web Stats Reports

Jun 23, 2010

I'm planing to write a bash script that will make some web stats reports and I'm stuck on beginning because I don't know how can I read a directory content, put everything in a variable, compare the variable value with current date and go further.More specific ...

I have /var/apache/log/. Here I have access logs on date ( like access.log.24.06.2010.gz and so on ).

How can I do to automatically zgrep (in a bash script) last day .gz ??

View 3 Replies View Related

Programming :: Bash Script To Test For Open FTP Sessions From Specific Clients?

Apr 8, 2009

I look after a server which accepts automatic overnight PASV FTP uploads from remote clients. When the uploads are complete, my Bash script copies the files to another location. The problem is, my script needs to be a bit smarter when it comes to detecting active FTP sessions.

I was using:

Code:

netstat -n | grep ":21 " | grep ESTABLISHED

to test if there were active sessions, but came unstuck when a local user left an unrelated FTP session active. The result - my script hung around all night thinking there was an active upload from a remote client. My server is behind a firewall, so remote clients all show an internal (NAT) address,so I can't differentiate by source IP address.I can't install LSOF or FUSER for security reasons. Is there a way I can test for active FTP sessions from specific users? I am running Red Hat Enterprise Linux Server release 5.2 (Tikanga).

View 7 Replies View Related

Programming :: Bash - Ps - Psgrep And Read /proc/$pid Make Script Exit

Mar 22, 2011

I have not been able to write bash to use a PID file to ensure no other instance of the same script is running! All three methods I can think of to see if the PID in the PID file is another instance of the script make the script exit with a return code of 1 but the same commands run at the command prompt work as expected.

The first attempt was:

Code:

The first attempted workaround was:

Code:

The second attempted workaround (with debug to make the following command prompt copy and paste meaningful) was:

Code:

Here's the command prompt session, testing with a stale PID file and then manually running the problem command and it behaving as expected:

Code:

This on Slackware64 13.1 which has bash 4.1.7.

In desperation I tried rebooting but the behaviour was the same.

View 2 Replies View Related

Programming :: Make A Bash Script Start Automaticly When System Restart?

Apr 4, 2009

ia have this script
#!/bin/bash
if [ -e /tmp/mysql.pipe ]; then

[code]...

View 3 Replies View Related

General :: How To Minimize Bash Shell Prompt

Oct 26, 2010

Currently the terminal prompt looks like this:[karlis@karlis-desktop current_folder]$How can I minimize the prompt, so that it only shows $ or # without extra info in square brackets?I checked the preferences for the default Gnome-Terminal and Terminator - there are no settings for this. It is pretty hard to use terminal when working in directories with long names.

View 1 Replies View Related

Programming :: Bash: Rename Files In Alphabetical Order And Make Extensions Uppercase?

Oct 21, 2010

I am trying to write a bash script that will extract a .cbr (.rar) file, traverse the extracted files in alphabetical order and rename them 001.JPG, 002.JPG, 003.JPG, etc.So far I only have this much to extract it:

Code:
#!/bin/bash
#

[code]....

View 8 Replies View Related

Ubuntu :: Firefox Does Not Minimize?

May 29, 2011

When I clock minimize, it exits instead.

View 2 Replies View Related

Programming :: C / C++ Scripts For Make Hunting Call In Open IMS

Nov 15, 2010

I am a newbie in linux n programming, I need to use ubuntu for my research at school about building an IMS server use openims.

The problem is I need an additional script in C/C++ for my openims server to make an extension call. I hope one number can represent 3 client as receiver/operator. So, when I call the number, the server can forward the call to those three receiver by hunt.
1st call will be forward to the 1st receiver.
2nd call will be forward to the 2nd receiver.
3rd call will be forward to the 3rd receiver.
then, 4th call will be forward back to the 1st receiver, etc.

View 7 Replies View Related

Programming :: Distribute Software / Make It Free - Open Source?

Jan 15, 2010

I was wondering what would be a good, no-cost way to distribute software that I wrote? And what would be a good way to make it free/open source?

View 3 Replies View Related

Programming :: Bash - Automatically Build A Set Of Packages And Redirect Output Into Logs - Failed Make Should Return A Non-zero Value

Jun 27, 2011

I have a set of bash scripts that I'm running that automatically build a set of packages for me and redirect their output into logs. Basically, I have a bunch of lines that are something like this: ${CONFIGURE_DIR}/configure &> ${LOG_DIR}/log or cd ${CONFIGURE_DIR} && make &> ${LOG_DIR}/log, etc.

This is supposed to make the entire process silent. However, sometimes with some packages some output leaks to my console (either stdout or stderr). I'm thinking that maybe the configure scripts/make are executing commands within new shell instances that don't inherit my redirect, or something to that effect.

Another reason for thinking this is that in another part of my script I detect errors when running make by testing with "if [ $? -ne 0 ]", and if the redirect leaks to my console and also the leaked output indicates that the build failed ("make: Error" and so on), then my $? test fails (i.e., it thinks that $? == 0, whereas a failed make should return a non-zero value). It's as if my original script can't "see" the results from child commands executed from later scripts.

View 1 Replies View Related

Ubuntu :: Can't Minimize The Firefox Page

Sep 22, 2010

I am using ubuntu 8.10 and firefox 3.0.png and for some reason I cant minimise the firefox page and it is taking up most of the screen. None of the top bar with Applications Places and System or date volume in fact no top bar. I cant remember everything I have tried. When I go to custom the top bar briefly appearers and then goes off.

View 5 Replies View Related

Ubuntu :: No Taskbar On Bottom So When I Minimize Firefox It's Just Gone?

Aug 3, 2010

I just installed 10.04 and have 1 issue, I don't have the taskbar on the bottom so when I minimize Firefox it's just gone? How do I get it back?

View 2 Replies View Related

Ubuntu :: Get Open Apps To Minimize To The Task Bar?

Apr 30, 2010

All open apps when minimised just disappear, they do not go to the task bar.What can I do to get open apps to minimize to the task bar.

View 1 Replies View Related

Installation :: Minimize All Open Windows In Ubuntu 10.10?

Oct 9, 2010

Before this command used to work "CTRL+ALT+d" it use to minimized all the open windows.

View 9 Replies View Related

Ubuntu Installation :: Firefox Maximize,Minimize,Close Not Working?

May 8, 2010

Yesterday I allowed all updates to be installed. My system was upgraded from Karmic to Lucid.I have the following post upgrade installation.Fire Fox does not show a maximize,minimize or exit buttons.I searched online and tried the follow:

metacity --replace
uninstalled metacity
unistalled Compviz

[code]....

View 2 Replies View Related

Software :: Firefox 5 Without Windows Border In Flwm - How To Minimize The Window Now

Jul 13, 2011

I have firefox 5 on my old box. But the border disappear regularly (in flwm). how to then minimize the window? (where firefox is). Perhaps there is a "ctrl something" for making appearing again the flwm border?
In the remaining time, I have to close firefox with "File Exit" when I want to start another programm or go into another window. I desinstalled/reinstalled firefox, then the border was again then and i could minimize/maximize the window..

View 5 Replies View Related

Ubuntu :: Minimize Open Terminal Window To An Icon On My Taskbar?

Aug 1, 2010

I have a desktop computer and a NAS, running Kubuntu & Ubuntu. I use WOL to wake the NAS and then mount the drives (NFS) on my desktop.
I've placed an icon on my KDE desktop which wakes the NAS and mounts the drives, this works great, but I've set it to run in terminal so I can enter the password for mounting the drives. This leaves me with an open window which I don't want to close because the NAS is set to shutdown 15 minutes after ssh logout.
My question is how can I minimize the open terminal window to an icon on my taskbar?

View 2 Replies View Related

Ubuntu :: Firefox Icon When Minimize Was At The Cairo Dock But Now It Is At The Notification Area

Feb 12, 2011

I just have used ubuntu for few day and i have a problem. 2 day ago, the firefox icon when i minimize was at the cairo dock but now it is at the notification area i not sure what i did?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved