Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello , I am quite new to linux and currently I am using cygwin on my windows machine . Problem is I made a script to automate my analytics work and used process substitution in it and it worked fine when running on cgwin . But when running that same script on linux machine it is showing problems with process substitution .So m bit confused.Please help.
First thing, post that snippet of your script where you're getting error. Second, invoke your script with debug mode i.e. add set -xv just below #!/bin/bash and invoke the script again, so you can see that where it's going wrong.
Why do you expect /cygdrive/c on Linux to be what it was in cygwin?
If this is a dual boot system and you want to access your Windows c drive that way, you could mount it that way. But did you?
Anyway, I'm pretty sure you are not having a problem with "process substitution". You are having a problem with a script that includes a hard coded path for its data directory. You are running that script on a system where that data is located somewhere else.
Do you have a nutch directory somewhere in the linux system with similar contents to what it had in Windows?
Even if you do, it appears nutch/bin/nutch.exe is a windows program that your script depends on. Do you have that recompiled as a Linux program nutch/bin/nutch?
If you have a nutch directory on Linux, with anything that was originally non portable converted to Linux compatible, then you could set up a symlink or mount so that /cygdrive/c on Linux points to the directory containing nutch. Alternately, you could edit the script and replace /cygdrive/c wherever it occurs with the directory containing nutch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.