02-26-2013
In Cygwin, "c:\" is "/cygsrive/c/".
10 More Discussions You Might Find Interesting
1. BSD
Hi,
I use WinMe, want to access, remotely, X-windows of my FreeBSD6.2 machine using the Cigwin from my windows machine as a normal user.
However, I can login (through ssh and Telnet) to my FeeBSD machine as root and/or 'su' from some users grouped to the 'wheel' group.
I'm still new to... (1 Reply)
Discussion started by: Praveen_218
1 Replies
2. Windows & DOS: Issues & Discussions
Hi all, I am just enjoying my first experience with UNIX type stuff but I am completely stumped with syntax etc. I have installed OpenSSH on my windows machine which is a working nicley and I can gain access using putty. I am however trying to set up public key authentication and turn off passwords... (2 Replies)
Discussion started by: bilbonvidia
2 Replies
3. Shell Programming and Scripting
#!/bin/ksh
echo -en "\033|||'-'))
echo -e "\033
The above script works fine when the interpreter is ksh, but outputs the following error when #!/bin/bash is used as shebang:
test.sh: line 5: syntax error near unexpected token `('
test.sh: line 5: `case "$ACTIVATION_KEY" in +(|||'-'))' (2 Replies)
Discussion started by: proactiveaditya
2 Replies
4. Shell Programming and Scripting
Hmmm.... I love these forums because I always get great prompt responses and I want to ask a question about running bash on windows. Is that allowed?
Now I know I can install cygwin cron and run bash that way.
Can I run bash from windows schedule task? How?
thanks
siegfried (1 Reply)
Discussion started by: siegfried
1 Replies
5. Windows & DOS: Issues & Discussions
I have compiled an application called tmesh.exe, that was compiled for the cygwin, win7 platform. I wonder, if I do that outside X window, Is there a chance that I can run it on the command prompt of windows 7? (tmesh:4048): Gtk-WARNING **: cannot open display: THANKS Jack (3 Replies)
Discussion started by: lucky7456969
3 Replies
6. Shell Programming and Scripting
Hello All,
I was writing a Bash shell script that will be executed on both an AIX server (/usr/bin/ksh) and a SLES server (/bin/bash). The AIX server
has Bash installed at "/usr/bin/bash", which is in a different dir then the SLES server.
So basically I am writing the script on the SLES... (4 Replies)
Discussion started by: mrm5102
4 Replies
7. Shell Programming and Scripting
All,
Have a weird issue where i need to generate a report from GitHub monthly detailing user accounts and the last time they logged in. I'm using a windows box to do this (work issued) and would like to know if anyone has any experience scripting for GitAPI using windows / cygwin / powershell?... (9 Replies)
Discussion started by: ChocoTaco
9 Replies
8. Shell Programming and Scripting
Hello Friend,
I am not expert in power shell scripting. I nee custom powershell script which check if given process is running on windows machine or not.
will use it in nagios to monitor that process. (0 Replies)
Discussion started by: ghpradeep
0 Replies
9. UNIX for Beginners Questions & Answers
Hi Guys,
I am trying to run flyway command on ubuntu.
on windows command line is simple :
C:\Users\admin\Downloads\flyway-commandline-5.0.7-windows-x64\flyway-5.0.7> flyway migrate
how can i do it via bash?
i tied to use mnt command but starting flyway is not possible.
Please... (22 Replies)
Discussion started by: jaryszek
22 Replies
10. UNIX for Advanced & Expert Users
Hello Experts,
I am creating a run time powershell script on Linux machine and copying that powershell script to Windows machine. To connect to windows through "ssh", I am using Cygwin tool. To make the connection password less I copied my public in authorized_keys in windows Administrator... (5 Replies)
Discussion started by: shekhar_4_u
5 Replies
UNIQID(3) 1 UNIQID(3)
uniqid - Generate a unique ID
SYNOPSIS
string uniqid ([string $prefix = ""], [bool $more_entropy = false])
DESCRIPTION
Gets a prefixed unique identifier based on the current time in microseconds.
Warning
This function does not create random nor unpredictable strings. This function must not be used for security purposes. Use a cryp-
tographically secure random function/generator and cryptographically secure hash functions to create unpredictable secure IDs.
PARAMETERS
o $prefix
- Can be useful, for instance, if you generate identifiers simultaneously on several hosts that might happen to generate the iden-
tifier at the same microsecond. With an empty $prefix, the returned string will be 13 characters long. If $more_entropy is TRUE,
it will be 23 characters.
o $more_entropy
- If set to TRUE, uniqid(3) will add additional entropy (using the combined linear congruential generator) at the end of the
return value, which increases the likelihood that the result will be unique.
RETURN VALUES
Returns the unique identifier, as a string.
EXAMPLES
Example #1
uniqid(3) Example
<?php
/* A uniqid, like: 4b3403665fea6 */
printf("uniqid(): %s
", uniqid());
/* We can also prefix the uniqid, this the same as
* doing:
*
* $uniqid = $prefix . uniqid();
* $uniqid = uniqid($prefix);
*/
printf("uniqid('php_'): %s
", uniqid('php_'));
/* We can also activate the more_entropy parameter, which is
* required on some systems, like Cygwin. This makes uniqid()
* produce a value like: 4b340550242239.64159797
*/
printf("uniqid('', true): %s
", uniqid('', true));
?>
NOTES
Caution
This function does not generate cryptographically secure tokens, in fact without being passed any additional parameters the return
value is little different from microtime(3). If you need to generate cryptographically secure tokens use openssl_ran-
dom_pseudo_bytes(3).
Note
Under Cygwin, the $more_entropy must be set to TRUE for this function to work.
PHP Documentation Group UNIQID(3)