Score:0

Script cant find file in linux subsystem windows

co flag

So i have a folder "gib" in my ubuntu root directory. But this line of a script:

#! /bin/tcsh -f
setenv  GIBBS /gib
set gibbs = $GIBBS/GibbsCluster-2.0e_SA.pl 

This always gives error that file GibbsCluster-2.0e_SA.pl not found. Anyone can tell me how to properly set the env path so that the file will be found? The windows location of the file is: I:\Linux\ubuntu\rootfs\gib

But in ubuntu, the directory is is located in /gib How do i put the address correctly in the script so that the file will be found?

muru avatar
us flag
Why have you tagged this as bash? This looks like csh, maybe
Harry Lincoln Komol avatar
co flag
@muru fixed it.
Score:0
jp flag

In csh and tcsh. You can simply do:

set GIBBS="/gib"

then:

set gibbs="$GIBBS/GibbsCluster-2.0e_SA.pl"

You can then test the variable with echo "$gibbs"

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.