I'm trying to write batch scripts of the kind that start a Cygwin session in rxvt from the desktop, with the added feature that the session starts in a folder other than $HOME. I want to do this for two folders I use often.
According to the manpage, rxvt has a "-cd" command. Therefore, at first and second glance, the following should work.
The results are that I see an RXVT window for about a blink or two, then nothing.
Is there something wrong with where I have the "-cd" command? Or should I 'bite the bullet' and register the two folders in Environment Variables or .bashrc? I'm thinking then I could use $NEWEST or $TG1 with the "-cd" command and both the OS and Cygwin would know what/where I was talking about.
Advice please on how to proceed.
BZT
---------- Post updated 21st Feb 2010 at 02:46 ---------- Previous update was 20th Feb 2010 at 12:53 ----------
My bad -- it's URXVT (rxvt-unicode) that has the "-cd" command. Wouldn't be a bad time for a bit of backward-inheritance, though, methinks.
Now with slight modifications to the batch file code in my original post to this thread, I'm getting "flashes" or "there-&-gones" by both the Command prompt and rxvt.
BZT
---------- Post updated at 02:46 ---------- Previous update was at 02:46 ----------
My bad -- it's URXVT (rxvt-unicode) that has the "-cd" command. Wouldn't be a bad time for a bit of backward-inheritance, though, methinks.
Now with slight modifications to the batch file code in my original post to this thread, I'm getting "flashes" or "there-&-gones" by both the Command prompt and rxvt.
BZT
---------- Post updated at 02:49 ---------- Previous update was at 02:46 ----------
Okay this ^^ has turned into an awful mess, and I'm not sure how it happened. Could someone please trim the above back to one reply and then delete this request?
Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
To get this:
https://www.unix.com/members/silversleevesx-albums-incidental-shot-glass-picture127-termshot-rxvt-rootless.png
out of Cygwin's rxvt, you have to tweak your
/cygwin/etc/x11/app-defaults/rxvt file, which is here:... (0 Replies)
Hello!
I have somo problems with simple scripts like this:
#!/bin/bash
echo -n "Enter your name and press : "
read var_name
echo "Your name is: $var_name"
When I try to run it, this error occurs: ':not a valid identifier var_name.
Why?? (I work in cygiwin)
Is there anybody out... (10 Replies)
Hello all, thanks for your time (and this forum, what an awesome resource for newbs like myself!)
Anyways, I've been given the task of importing content from a directory of about...7000 HTML files. They are all named appropriately and broken down by name depending on what book they belong too.... (8 Replies)
Anyone have any advice?
I've tried just about every option, tweak, re-phrase in the man page, FAQ, and such, but there doesn't seem to be any information about what to do when your AfterImage-enabled RXVT displays its background image (xbm format converted from PNG by ImageMagick v6.-something)... (0 Replies)
I have installed ruby with cygwin
according to these inst:
w w w .sproutcore.com/install_win/#tab=advanced-install
but at the last command:
gem install sproutcore I'm getting a bunch of errors:
$ gem install sproutcore
Fetching: rack-1.3.2.gem (100%)
Fetching:... (0 Replies)
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
I am new to Shell Scripting and need some help.
The following batch job has been failing for me due to the .nfsxxx files in use. I need to know how to modify the following script to exclude the .nfsxxx files so this batch job will not fail on me. I have done lots of googling and keep coming back... (2 Replies)
hai,
I have a list of files having extension .sy in a folder. I want to find such files and print the first two columns of the files to new extension .tmp (1 Reply)
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)