Search Results

Search: Posts Made By: siegfried
4,712
Posted By siegfried
socat seems to the job
Don:
Starting the build and starting the web server is done with a single maven command and the script is terminated with a kill or windows taskkill command. So you cannot have that script start a...
4,712
Posted By siegfried
How to block first bash script until second bash script script launches web server/site?
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.

I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by...
2,795
Posted By siegfried
Good idea! Thanks!
Good idea!
Thanks!
2,795
Posted By siegfried
This command does not recreate the directory...
This command does not recreate the directory structure

/usr/bin/find . -type f -newerct '8 days ago' -exec cp {} /cygdrive/c/deleteme.txt \; -print

This code correctly finds the one file in...
4,156
Posted By siegfried
I apologize for not being more response. I've...
I apologize for not being more response. I've been working a lot of overtime and I did not have time to post an abbreviated version of BackupRecords.

I also apologize for not writing this little...
2,795
Posted By siegfried
How to recursively copy directory only for recent files?
I love the -newerct flag for the Cygwin find command on windows.

Can I use "/usr/bin/find . -newerct '3 hours ago'" to conditionally copy a directory tree so that only the files in the directory...
4,156
Posted By siegfried
RudiC: I do use it (BUPLOG) over again and the...
RudiC:
I do use it (BUPLOG) over again and the problem is that each time I use it gets a new time and I get a new log file name. I was hoping that the value of BUPLOG would be frozen in the initial...
4,156
Posted By siegfried
RudiC: I use BUPLOG twice and that is the...
RudiC:
I use BUPLOG twice and that is the problem:
Using BUPLOG twice means I call $(BackupRecords --log "$src") twice which means I get two different log file names. And remember, $(BackupRecords...
4,156
Posted By siegfried
Yes! As I you inferred: $(BackupRecords --log)...
Yes! As I you inferred: $(BackupRecords --log) very similar to $(date +'%Y %b %d %H:%M:%ss'). If I call it too often, I get different log files (which is usually what I want).

However, in this...
1,989
Posted By siegfried
How to Force command substitution evaluation in bash?
OK, I'm striving to abide by all the rules this time.

Here is a fragment of my windows10/cygwin64/bash script:
export BUPLOG=$(BackupRecords --log "$src")
robocopy $(BackupRecords -mrbd "$src"...
4,156
Posted By siegfried
How to Force command substitution evaluation in bash?
OK, I'm striving to abide by all the rules this time.

Here is a fragment of my windows10/cygwin64/bash script:
export BUPLOG=$(BackupRecords --log "$src")
robocopy $(BackupRecords -mrbd "$src"...
8,891
Posted By siegfried
Thanks guys! both solutions work! Sorry for...
Thanks guys! both solutions work!
Sorry for the late response -- got stuck in some serious over time.
8,891
Posted By siegfried
Thank you everyone. I tried google searching...
Thank you everyone.

I tried google searching for the -perm mode syntax and could not find any examples. /usr/bin/find -help -perm gave some cryptic syntax summary and I still could not figure out...
8,891
Posted By siegfried
How to recursively /usr/bin/find only readonly files?
I'm having trouble because, for some reason, cp -R missed a few files. And so did xcopy/s.

Since I'm running Cygwin on Win10, I decided to see if robocopy would be more effective. The trouble is...
3,195
Posted By siegfried
How to rename (move) most recent files in directory?
I'm using cygwin32 on Windows.
DN is an environment variable pointed at my download directory.

This command works to move the single most recent file in my download directory to my current...
1,264
Posted By siegfried
Wow! Thanks for the prompt response! That works!
Wow! Thanks for the prompt response! That works!
1,264
Posted By siegfried
How to rename lots of files with find?
Can someone help me with this script.
I have a bunch of files like this:

"2209OS_02_Code" "2209OS_03_Code" "2209OS_04_Code" "2209OS_05_Code" "2209OS_06_Code" "2209OS_07_Code" "2209OS_08_Code"...
2,224
Posted By siegfried
Script for Starting Firefox?
Presently I have a powershell script (windows only, of course) that enumerates all the instances of "Internet Explorer" running on my machine and if at least one exists, the script creates a new tab...
15,626
Posted By siegfried
Where are lock and unlock commands?
I'm running cygwin bash on Windows 8.1. I would like to to write a OS neutral bash script that uses the commands like lock, block and unlock.

Do I need to write lock, block and unlock myself in...
7,417
Posted By siegfried
How to (GUI) prompt for password from bash?
I remember there was a gnome only command that we could insert in a bash script to mount a Linux disk that would pop up a little window to grab a password.

I know there are bash commands to read a...
13,187
Posted By siegfried
Thanks again DGPickett! I'm still getting the...
Thanks again DGPickett! I'm still getting the same error, however.


#!/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy unrestricted
write-host "hello"

...
13,187
Posted By siegfried
OK, good to know! Thanks. But it still does not...
OK, good to know! Thanks. But it still does not work. Any more ideas? I did this from bash:

chmod +x ./hello.ps1
./hello.ps1


and still received this response:

At line:1 char:33

+...
13,187
Posted By siegfried
How to start powershell with shebang from windows/cygwin/bash?
I would like to the the windws8/cygwin/bash shebang feature to start a powershell script.

I do a "chmod +x set-sound.ps1"

and then at a bash prompt I do
./set-sound.ps1

The first line of...
6,387
Posted By siegfried
How to do one line bash schedule task?
This seems to work: https://www.unix.com/shell-programming-scripting/179705-how-run-cygwin-bash-windows-scheduled-task.html

However, I was hoping to avoid writing a 2 line bat files to invoke my...
1,703
Posted By siegfried
Wanted: Help with escaping bash command line arguments
Please forgive me if this is the wrong forum. I want to execute some one liners with the groovy programming language and I'm having trouble escaping the special characters to accommodate bash.
...
Showing results 1 to 25 of 140

 
All times are GMT -4. The time now is 10:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy