BASH is poorly suited to this, almost nothing in Windows is designed using the UNIX process model. Your bash script will be a thin wrapper around whatever external utility you find which allows you to generate arbitrary keypresses (and odds are, that utility will be flagged and deleted by your antivirus).
MS Windows has three kinds of directory paths which partly overlap and partly don't and almost no programs implement all of them.
BASH would be no help here, as in UNIX, there's only one kind of path and network filesystems are the responsibility of the operating system, not the shell.
MS fortunately made a few kludges to join different kinds of paths together when your app needs a specific kind.
You should be able to turn a shared folder into a drive letter CMD can use, via something like
That might even be a permanent mapping, unless you do
These 5 Users Gave Thanks to Corona688 For This Post:
pushd/popd is just a wrapper made around cd, it doesn't possess the magical ability to convert a network path into a local one. Altering the universe like that is an operating system feature. You have to ask Windows to do what you want.
I have a bash loop that waits for a single key press, then does $something depending on what $key is pressed before refreshing the screen with updated data. The problem I have is that the script will store additional key presses and chain them together causing the screen to redraw and the script... (1 Reply)
Hey guys,
I'm looking for a solution to simulate a key-combo (tab+q) inside an amiga-emulator. I've tried it with uinput and python without any success.
Any help would be great.
Cheers
McCarthy (5 Replies)
I am using Ubuntu 12.4
I am running the following script:
++++++++
#!/bin/bash
while ; do
xdotool mousemove 248 539 click 1 &
sleep 3
done
+++++++++
This moves the mouse on the specified position on the screen and clicks that pauses the script for 3 seconds and repeats the... (2 Replies)
I'm running cygwin bash on windows 7 and I'm have some bat files that perform large builds and take a long time and a lot of memory.
Therefor, I don't want to builds executing simultaneously (too much memory).
How can I implement a queue so I can queue up multiple builds and only execute one... (2 Replies)
Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX
I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Hi
i need to get the key pressed from the keyboard without focus on the application.
i work under CentOS 5.5 with QtC++ 4.7 and Python Script (0 Replies)
Hi,
I'm sorry if this has already been posted somewhere but I can't seem to find it on the forums (or anywhere on google :( )
I am writing a script where a user must enter a single character to perform an action.
For example, Press Q to Quit or R to Refresh
Basically I am stuggling... (5 Replies)
hi everyone,
I have a question about the java object oriented function which to simulate in bash script...
here is the function
"session.getMaxInactiveInterval() / 60 "
got any web can read this function? coz i need to simulate to bash script...
Hope someone give me a suggestion... (0 Replies)
Yo,
I program Unix for fun- except when editing my website removed by reborg - and wanted to learn how to track, trap, and use to my advantage a user keypress. I know there is a built-in JS function that can do that, but Javascript is a client-side language, therefore not usable in Unix, and... (2 Replies)