Search Results

Search: Posts Made By: siegfried
738
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...
738
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...
1,285
Posted By siegfried
Good idea! Thanks!
Good idea!
Thanks!
1,285
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...
2,307
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...
1,285
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...
2,307
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...
2,307
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...
2,307
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...
916
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"...
2,307
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,088
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.
4,088
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...
4,088
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...
1,424
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...
843
Posted By siegfried
Wow! Thanks for the prompt response! That works!
Wow! Thanks for the prompt response! That works!
843
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"...
1,376
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...
10,415
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...
4,999
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...
8,546
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"

...
8,546
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

+...
8,546
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...
4,677
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,156
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

 

Featured Tech Videos

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