Re: No shortcuts after default install - how to start cygwin?

2014-04-26 Thread V.99

On 26.4.2014 11:35, ben modra wrote:

Hi,
After performing a standard (default) install using setup-x86.exe,
there are no shortcuts in the start menu or desktop.  I don't really
mind but don't know how to initiate cygwin without it.

Its a work pc, which means I have little control over the system, and
it has been meddled with quite a bit.  Running XP.  It quite common
for this to happen on installing software, and I usually just make a
desktop shortcut. Must be unusual for others because I can't find any
reference to it in the archives.

Can you please tell me how to run cygwin without the shortcut?

Thanks

Hi,

target of my shortcut is
C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -
It is shortcut made by cygwins setup on windows xp.

--

.: Vlado :.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problems with lftp exclude

2014-09-07 Thread V.99

Hi Dan.

Think about /public_html/lftptest (local/lftptest) as a base and write 
-x relative to that base:


mirror -v --only-newer   -x "^dir1/"   /public_html/lftptest local/lftptest

I use exclude this way.

--

.: Vlado :.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: command line smtp client / command line email?

2014-10-01 Thread V.99

On 28.9.2014 19:20, Marilo wrote:

what are my options for a command line smtp client in cygwin?


Hi Marilo.

Have You tried sendEmail ? 
(http://caspian.dotconf.net/menu/Software/SendEmail/)
It is not a Cygwin package but perl script (and compiled Windows 
executable).

I use it for sending logs from my Windows boxes.

--

.: Vlado :.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Re: make android device file system visible as unix path

2015-02-15 Thread V.99

On 14.2.2015 4:25, andy wrote:

It doesn't have a drive letter in Windows Explorer.  The name is simply
"Moto G".  When I "ls /cygdrive", I see on the c-drive.  I think that the
handset's visibility to Windows Explorer is based on MTP USB, but that's
just something I'm learning about right now.

Hi Andy.
Root of the problem is in the nature of Media Transfer Protocol. This 
protocol behaves differently than usual filesystem. For this reason 
there is no drive letter for Your Moto G in Windows, nor in Cygwin.
Best solution I found so far: install sshd on Your Moto G and use scp or 
rsync to backup files from Your android device.

I am using SSHelper.

--

.: Vlado :.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



mysql - poor performance when restoring from large mysqldump backup

2015-06-28 Thread V.99

Hello.

I am trying to restore a backup of our database in order to examine the 
data state three weeks ago.

Backup is 1GB large SQL text file created by mysqldump.
After many attempts I found this:
Processing of backup file runs fluently in the beginning, several tables 
are successfully restored, including table event_log 3x10e6 row big.
Processing hangs after cca one hour of run during insert-s to table 
student_grade - this is approx 6x10e6 row big. (Exact place differs in 
every attempt.)
Mysqld process is running as before: 13%CPU, 187MB RAM, but HDD activity 
is now very low. Open connection to mysqld is not possible. I was 
waiting that mysqld will recover more than six hours, but the situation 
has not improved.
All this occurs on my workstation Intel(R) Core(TM) i7-4700MQ CPU @ 
2.40GHz, 16GB RAM, Windows 7 Professional x64, Cygwin 32-bit, mysql Ver 
14.14 Distrib 5.5.41, for CYGWIN (i686) using readline 6.3.


On the other hand I tried to restore the same backup file on linux 
machine (Pentium(R) Dual-Core  CPU E5300  @ 2.60GHz, 4GB RAM, CentOS 
release 6.6 (Final), 32-bit, mysql  Ver 14.14 Distrib 5.1.73, for 
redhat-linux-gnu (i386) using readline 5.1).
Whole database was successfully restored after cca two and half hours of 
run.


Can I tweak something in mysql or cygwin to improve restore (inserts) 
performance?

Any other suggestions, please?

--

.: Vlado :.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Setup suggestion: Check for running processes before uninstalling anything.

2015-12-02 Thread V.99

On 2.12.2015 0:11, Andrey Repin wrote:

Greetings, All!

I just got a hard case of stupidity...
Started Cygwin setup before checking if anything is running Cygwin.
Guess, what? It indeed did run. However, setup managed to uninstall mintty
before telling me that there's ssh-pageant running in the background.
I had to dig up and start shell manually to gracefully shutdown the agent.

I think it would be pretty nice of the Setup to check for running processes
before starting to make changes to the environment. IMHO.


Hi Andrey.

Before updating Cygwin is useful to stop running services (as you 
wrote), to check newer version of Setup, then again resume running services.

It is tedious to do it manually on each update.
So, I wrote a short script that can be useful http://pastebin.com/5rR8pbRe

--

.: Vlado :.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Error invoking find as a ssh command

2012-12-18 Thread V.99

Hi,

I cannot invoke find as command of ssh (ssh login@machine find params),
but invoking find with same params from terminal works correctly.

Maybe a bug in find utility?

Details and problem demonstration:
--

I'm working on CentOS, connecting to Windows Server 2008 Standard 
32-bit, Service Pack 2.


[root@backup domain_backup]# cat /etc/redhat-release
CentOS release 6.3 (Final)
[root@backup domain_backup]# ssh bkp@builder
Last login: Mon Dec 17 10:50:49 2012 from bdc
bkp@builder ~
$ /cygdrive/c/Windows/system32/cmd.exe /C ver
Microsoft Windows [Version 6.0.6002]
bkp@builder ~
$ logout
Connection to builder closed.
[root@backup domain_backup]#

I need to get list of files and their sizes:

[root@backup domain_backup]# ssh bkp@builder find
/cygdrive/d/Backups/Data -printf "\"%f (%s)\n\""
FIND: Invalid switch
[root@backup domain_backup]#

The problem is not in -printf parameter, because

[root@backup domain_backup]# ssh bkp@builder find /cygdrive/d/Backups/Data
FIND: Invalid switch
[root@backup domain_backup]#

works not too.
The same find invoked in terminal works:

[root@backup domain_backup]# ssh bkp@builder
Last login: Mon Dec 17 11:16:57 2012 from bdc
bkp@builder ~
$ find /cygdrive/d/Backups/Data -printf "%f (%s)\n" | head -n 2
Data (0)
BKP-builder-20120803-2359-mssql-EmpMonitor.7z (535069)
bkp@builder ~
$ logout
Connection to builder closed.
[root@backup domain_backup]#

Invoking other command in place of find works:
[root@backup domain_backup]# ssh bkp@builder ls /cygdrive/d/Backups/Data
| head -n 2
BKP-builder-20120803-2359-mssql-EmpMonitor.7z
BKP-builder-20120803-2359-mssql-EmpMonitor.7z.sha
[root@backup domain_backup]#

Invoking find on no-cygwin machine works too:
[root@backup domain_backup]# ssh root@www find /opt/backup/pool/ -printf
"\"%f (%s)\n\"" | head -n 2
pool/ (94208)
BKP-www-20121210-0033-svn-Rpt-14.tar.bz2 (2062406)
[root@backup domain_backup]#


Versions information

Cygwin.dll   1.7.17-1

find utility
find (GNU findutils) 4.5.9
Packaged by Cygwin (4.5.9-2)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version 1778ee9e7d0e150a37db66a0e51c1a56755aab4f
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION
FTS(FTS_CWDFD) CBO(level=2)

sshdOpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012

Cheers,
Vlado


P.S.:
I sent this message Mon, 17 Dec 2012 11:46:56 +0100, but seems not 
delivered :-(


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Error invoking find as a ssh command

2012-12-18 Thread V.99

On 18.12.2012 22:35, Dan Kegel wrote:

On Tue, Dec 18, 2012 at 1:30 PM, V.99  wrote:

[root@backup domain_backup]# ssh bkp@builder find
/cygdrive/d/Backups/Data -printf "\"%f (%s)\n\""
FIND: Invalid switch


It's picking up the windows find.exe instead of the cygwin one.  What
does
   echo $PATH
say?

- Dan



You are right!
PATH on builder begins with 
/cygdrive/c/Windows/system32:/cygdrive/c/Windows:...


I rewrote command to
ssh b...@builder.coopexsoft.sk /usr/bin/find /cygdrive/d/Backups/Data 
-printf "'%f (%s)\n'"

and now works perfectly!

Thank You very much.

--

.: Vlado :.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Fwd: sshd access works only when user is member of Administrators

2013-01-28 Thread V.99

Hi.

Mayby this helps:
$ /cygdrive/c/Windows/System32/icacls.exe c:\\cygwin\\home\\user1
c:\cygwin\home\user1 SRV\user1:(F)
 SRV\None:(RX)
 Everyone:(RX)
 CREATOR OWNER:(OI)(CI)(IO)(F)
 CREATOR GROUP:(OI)(CI)(IO)(RX,W)
 Everyone:(I)(OI)(CI)(IO)(RX,W)
 CREATOR OWNER:(OI)(CI)(IO)(F)
 CREATOR GROUP:(OI)(CI)(IO)(RX)
 Everyone:(OI)(CI)(IO)(RX)

$ /cygdrive/c/Windows/System32/icacls.exe c:\\cygwin\\home
c:\cygwin\home SRV\Admin:(F)
   BUILTIN\Administrators:(RX,W)
   Everyone:(RX,W)
   NULL SID:(RD)
   CREATOR OWNER:(OI)(CI)(IO)(F)
   CREATOR GROUP:(OI)(CI)(IO)(RX,W)
   Everyone:(OI)(CI)(IO)(RX,W)


On 27.1.2013 16:12, Godfried Borremans wrote:

What rights are needed for the homefolder? for whom?





--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: lftp bug: mirror [-R] didn't work with sftp connection

2013-07-03 Thread V.99

Yes, I have same problem.
This is the problem in version 4.4.7 of lftp - see 
http://lftp.yar.ru/news.html.

Problem is solved in 4.4.8.
As a workaround downgrade to 4.4.4, until cygwin adopts version 4.4.8.

Vlado

On 3.7.2013 7:31, Arthur Tu wrote:

$ lftp sftp://usr@addr

I can mget or mput files with sftp connection. However, when it comes 
to directory operation, lftp always failed.


Both `mirror abc` to download whole directory or 'mirror -R abc' to 
upload whole directory didn't work. The former one stuck at 'mkdir 
abc' while the latter one stuck at 'cd abc'. So i guess it's some bugs 
of operations on local file system.



Some more information on another two conditions.
1. `sftp usr@addr`
I can use 'get -r' to download whole directory.

2. 'lftp someusr@another_addr'.
When i used lftp to connect to normal ftp servers instead of sftp 
ones, `mirror` worked.



Can someone reproduce this problem?



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple