I am trying to write a bash script, to open firefox and then open a local webpage in a tab. This is a shell of what I have
From what I understand, I think bash cannot read the file in /cygdrive/d/Playback.html as it doesnot understand the /cygdrive partition. I tried the windows notation as well, which didn't work. Could someone help me in doing this.
Thanks.
---------- Post updated at 02:55 PM ---------- Previous update was at 02:42 PM ----------
Just realized my mistake. Stupid. I was using $ in the assignment statement.
Hi, all,
I try to run a quite simple bash script mytest.sh in cygwin, it's content is:
#!/bin/bash
echo "It is my first bash shell"
there are three lines in the script. The second line is blank line.
When I run it use command: bash c:/mytest.sh, ... (6 Replies)
I am running (I believe) the latest stable version of cygwin
CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
on a win xp sp2 laptop.
Suppose, to make things simple for now (but I may do a part 2 posting...), that I am in a dos shell, and I want to create a bash shell and have it... (1 Reply)
Hello everyone,
I am struggling a bit with a batch script that I need to run in cygwin. I work in winXP and I had to write some awk scripts to do some file manipulation, and now I would like to automate the process by just running a batch file so that my colleagues can use it easily.
Now, the... (2 Replies)
I'd like to streamline the code more than a bit to get it to run faster.
There's a thread about this and related issues of mine on the Cygwin mailing-list, but I want to eliminate any chances it might just be inefficient/inelegant/crappy code. A previous run of the same script on both Cygwin and... (6 Replies)
Hello,
In my make file (make 3.81), I use a combination of shell commands to automatically create the name of my build directory.
OS := $(shell uname -s)
ARCH := $(shell uname -m)
KERN := $(shell uname -r | cut -d. -f 1,2)
BDIR := $(OS)_$(KERN).$(ARCH)When I boot into different OSs, I... (7 Replies)
Hi, although I am not expert in bash, so please forgive me if this is silly, I think that this is strange:
I have this command:
find . -type f -print0 |xargs -0 grep -i -e 'some rexp'
and it works fine. But when I create a bash script (on cygwin) to run this command, there is no output !!!... (3 Replies)
I'm using Notepad++ to edit my BASH scripts and using CYGWIN to run them from Windows7.
In Notepad++ there is a 'Run' capability. How do I get this to run my scripts directly without having to enter the script name from the Cygwin command line? (3 Replies)
I am using CygWin to run a bash file but I am getting weird results.
#!/bin/bash
mkdir CLEANDATA
mv *FASTA CLEANDATA
cd CLEANDATA
ls
echo "COMPLETE"
And this is what I get
$ ./Pipe.txt
./Pipe.txt: line 5: $'ls\r': command not found
COMPLETE
Moreover, the new folder is... (1 Reply)
Hi everybody,
First, I'm sorry for my bad english!
I have the following situation:
I have a Windows 2012 R2 with Cygwin installed. The Windows Server is used as a backup Server with Dell AppAssure installed. At the moment, AppAssure saves Backup Targets to a repository on his D. The... (9 Replies)
I am trying to use a batch file to automatically execute a bash script with no luck this far.
The batch script looks like this:
C:\Cygwin64\bin\bash test.sh
I have also tried this:
C:\Cygwin64\bin\bash "C:\Cygwin64\bin\test.sh"
Needless to say that the windows box has Cygwin... (7 Replies)
Discussion started by: Xterra
7 Replies
LEARN ABOUT OPENSOLARIS
firefox
firefox(1) User Commands firefox(1)NAME
firefox - Firefox for Sun Java Desktop System
SYNOPSIS
firefox [options ... ] [url]
DESCRIPTION
Firefox is a free, open-source web browser based on the Mozilla codebase. It is small, fast and easy to use, and offers many advantages
over other browsers, such as the ability to block pop-up windows.
OPTIONS
The following options are supported:
-height value Set the height of startup window to value.
-h or -help Display the help message.
-width value Set the width of startup window to value.
-v or -version Display the version message.
-P profile Start with the profile named: profile.
-ProfileManager Start with profile manager.
-UILocale locale Start with the UI Locale listed: locale.
-safe-mode Disables extensions and themes for this session.
-jsconsole Open the JavaScript console.
-browser Open a browser window.
-setDefaultBrowser Set this app as the default browser.
EXAMPLES
Example 1: Launching Firefox
example% firefox
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
1 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/firefox
Executable for Firefox application
$HOME/.mozilla/firefox
User configuration files for Firefox
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWfirefox |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
For more information about firefox, please refer to http://www.mozilla.org/firefox
Refer to Help->Help Contents for more information.
NOTES
Updated by Evan Yan, Sun Microsystems Inc., 2008.
SunOS 5.11 10 Jul 2008 firefox(1)