04-21-2009
I've double checked paths. But copying the command line from the script and pasteing it manually works. So I know there are no spelling mistakes.
10 More Discussions You Might Find Interesting
1. Programming
Hello,
I am trying to compile a C program from Cygwin and it gives ld: not found -user32 error .. I searched for library libuser32.so and was not able locate it..
When i create only object file using gcc -c option it gets created successfully .. When i use gcc -o option , executable is not... (4 Replies)
Discussion started by: shafi2all
4 Replies
2. UNIX for Dummies Questions & Answers
Hi...
my problem is that I want to copy one html-file to my windows-box webserver using scp.
so far no problem but the destination is in /cygdrive/c/program files/dest and as we all know unix doesnt like spaces in paths.
scp html.file user@windowsbox:/cygdrive/c/program... (5 Replies)
Discussion started by: cypher82
5 Replies
3. Shell Programming and Scripting
Hi,
I am trying to execute a Shell script file.
The file has the following commands.
#Return today's log file
LOG_DATE=`date +%d_%b_%Y`.log
echo $LOG_DATE
#Return last modified date of the Log File
FILE_MOD_DATE=`date -r $LOG_DATE`
echo $FILE_MOD_DATE
If I execute the... (6 Replies)
Discussion started by: AnneAnne
6 Replies
4. UNIX Desktop Questions & Answers
Hello!!!
My problem is: i'm trying to send At commands from Pc to mobile phone using bluetooth and cygwin and i would like to read the device's answers on the shell bash. And so, i open two terminals in this way:
xterm &
In the first i write:
cat /dev/ttyS2
because the device is... (9 Replies)
Discussion started by: blianna
9 Replies
5. Shell Programming and Scripting
Hi,
I have a cywin test script as below but errors,
#!/usr/bin/bash
while
do
echo "123"
echo "456"
done
sh-3.2$ ./test.sh
./test.sh: line 7: syntax error: unexpected end of file
Please help...
Thanks!
Victor (3 Replies)
Discussion started by: victorcheung
3 Replies
6. Shell Programming and Scripting
hi,
I am using Cygwin for running the shell script.
If i execute the following command at the prompt output is obtained.
grep echo *
The same i have put in a file and when am trying to execute it is throwing error.
IP.sh
echo "Starting command..........."
grep echo *
... (9 Replies)
Discussion started by: flamingo_l
9 Replies
7. Shell Programming and Scripting
I am having an issue with using cygwin (on Windows XP). My script errors on if -command. The script here works fine on Linux, but cygwin fails...
#!/bin/sh
if then
echo "Test"
fi
The error -message:
./ShellTest.sh: line 4: syntax error near unexpected token `fi'
./ShellTest.sh:... (1 Reply)
Discussion started by: jussist
1 Replies
8. Shell Programming and Scripting
I'm using cygwin on win7, What I would like to do is something like this:
cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e
I know I can start a new instance using either of these:
mintty -e ...
cygstart tail ...
But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies
9. Shell Programming and Scripting
I have a file with below format :
2013-05-20 hello
has done
2013-05-20 hi
000abc
abc
2013-05-21 thank you
I want the out put to be like this :
2013-05-20 hello has done
2013-05-20 hi 000abc abc
2013-05-21 thank you
What I could think of is something like this :
cat... (7 Replies)
Discussion started by: Sparta
7 Replies
10. Answers to Frequently Asked Questions
I tried to compile the files in basic_dump_ex using cygwin :
/cygdrive/c/WpdPack/Examples-pcap/basic_dump_ex
$make
but I got this :
cc -g -O -mno-cygwin -I ../../include -c -o basic_dump_ex.o basic_dump_ex.c
cc: error: unrecognized command line option ‘-mno-cygwin’... (6 Replies)
Discussion started by: steve120
6 Replies