I try to create a .arangosh.rc file with the timed-function as documented in
https://docs.arangodb.com/Arangosh/Configuration.html
Unfortunately I did not find any hint, in which concrete directory I shall store the .rc file. I also tried to start arangosh with the --configuration, but this throws an error. When starting arangosh with --javascript.execute, it only executes the javascript and directly finishes afterwards.
Can anybody provide me a hint, please?
arangosh will look for a user-defined startup script named .arangosh.rc in the user's home directory on startup. If the file is present arangosh will execute the contents of this file inside the global scope.
On Linux, the directory name convention for the home directory is /home/<linux-user-name>
The location of the home directory on Windows may vary depending on settings. On the Windows I have access to, the Windows explorer shows a localized name of the directory (C:\Benutzer\<windows-user-name>) even though the file system's actual directory name is C:\Users\<windows-user-name>. ArangoDB will determine the home directory on Windows by peeking into the enviroment variables %HOMEDRIVE% and %HOMEPATH%.
Putting the .arangosh.rc file into C:\Users\<windows-user-name> worked for me when I tried. I put the timed function into it and could use it in arangosh afterwards.
If it doesn't work for you, could you post which Windows version you're using (and if possible also the name of the home directory so we can try to reproduce)? Thanks.
Related
I want to clone a github repo that uses two different files/folders:
\packages\ - Folder
\Packages - File
However, due to windows not using Case Sensitive File/Directory Names, this isnt working, it gives me the error that the folder cant be renamed because a file already has the same name.
The program that uses this project REQUIRES that there be a no-extension binary text file Packages (Its like a giant file full of control files (If you recognize linux debian youll understand)
But it also requires a folder named \packages\ to hold the json files containing the config data for each control file within Packages
This question is an updated form of this previous question, which is outdated, and doesnt have an answer that solves the problem: Working in git with directories with the same name but different case in Windows
From Windows 10's update in April of 2018, they added a feature to "enable" case-sensitivity on specific directories.
I simply used the command on my github storage directory and now my project works fine.
To use the feature: Open a command prompt window (I dont believe this requires Administrator, it didnt for me)
Copy the full directory path to the folder you want to enable the flag on, type in the console:
fsutil.exe file SetCaseSensitiveInfo #:\Path\To\Directory\Here enable
Paste your C:/D:/E: or whatever Drive path into the location above. Then hit enter.
You DO NOT need to restart your computer, the flag seems to take effect immediately
Info sourced from: https://www.windowscentral.com/how-enable-ntfs-treat-folders-case-sensitive-windows-10#enable_case_sensitivity_ntfs_windows10
Dear community members,
We have three of same hardware Windows 7 Professional computers. No one of them is connected to a domain or directory service etc.
We run same executable image on all three computers. In one of them, I had to rename it. Because, with my application's original filename, it has no write access to it's working directory.
I setup full access permisions to USER group in working directory manually but this did not solve.
I suspect some kind of deny mechanism in Windows based on executable's name.
I searched the registry for executable's name but I did not find something relevant or meaningfull.
This situation occured after lot of crashes and updates of my program on that computer (I am a developer). One day, it suddenly started not to open files. I did not touch registry or did not change something other on OS.
My executable's name is karbon_tart.exe
When it start, it calls CreateFile (open mode if exist or create mode if not exist) to open karbon_tart.log file and karbon_tart.ini file.
With the files are exist and without the file exists, I tried two times and none of them, the program can open the files.
But if I just rename the name to karbon_tart_a.exe, program can open files no matter if they are exist or not.
Thank you for your interest
Regards
Ömür Ölmez.
I figured out at the end.
It is because of an old copy of my application in Virtual Store.
I am facing issues with FTP folder resetting using the class CFTPConnection.
My development environment is VC++6.0 and MFC.
I am able to create subfolders in the FTP using the function "CreateDirectory" of CFTPConnection class (FTP Server is in RHEL using vsftpd package).
But not able to find the function to go back to the root folder or parent folder.
Kindly anyone help me to fix this issue.
Thanks and Regards,
Alvin
The method you want is CFtpConnection::SetCurrentDirectory which simply uses FtpSetCurrentDirectory to change the directory.
Since FtpSetCurrentDirectory accepts:
Pointer to a null-terminated string that contains the name of the
directory to become the current working directory. This can be either
a fully qualified path or a name relative to the current directory.
You should be able to navigate using relative paths like ".." to go back a folder or to reset to parent folder something like "/".
I am writing a console app in c#.net. I have a batch file that currently copies the exe and exe.config to the startup folder on local machine from the network. It is set up that way so the user only has to run the batch file and then everytime the computer is started the exe will run.
Problem I am running into is that it also opens (or tries to open) the exe.config file as well. I am looking for the best workaround for this without it being overly complicated. Thought about putting the config file in a diferent location and then hardcoding the new location into the configuration manager but one of the concepts with the config file is to keep all hardcoded paths out of the code for easier updates if locations change. Also thought about putting a shortcut to the exe in the startup folder which would work but I want it to be transparant to the user. In other words all I want the user to do is run the .bat file once and forget about it.
Any help or ideas would be greatly appreciated as I am very new to .bat files
I like your idea of a shortcut, or for that matter a batch file pointing to the executable, with both the executable and config file located outside the startup folder.
Help me please with a bash script of a few lines.
I have a MyApplication executable in some folder, and I need to make a launcher script to call that application from it's folder when I click it from a grafical interface.
(I need this because I need my application to be launched from it's folder, so that Qt::currentPath() will return the current folder the executable is in)
Please help me, I just had to power off my linux machine two times in a row, I made fork bombs instead of launchers :(.
P.S. I'm a linux newbie, trying to figure out scripting.
EDIT
More about my current problem: Qt how to open a file in current dir ? or what's wrong with this?
Details: MyApplication is a GUI project compiled in Qt-Creator. It uses .xml files for storage. If I cd manually to the folder the executable is in, and run it, everything works fine, the application knows the path to the .xml files (current directory). But, if I just click the icon of the application it launches from $HOME, and my application is not able to find those .xml files.
That's why, I suppose, I need a .sh launcher, to call it from it's directory when I'll click it.
If its a graphical application, any sort of link will do. That works fine for me, unless you have something I'm not aware of, in which case please explain more.
Ps, fork bombs are limitable - http://forums.debian.net/viewtopic.php?f=10&t=44480&start=0