Questions tagged [rc]

An "rc" file is a file read at startup of a program. It is also the name of the Plan 9 Shell.

Historically, in the days when Unix and other software was distributed on tapes, a tape archive often contained a file named "rc" containing run commands or run code to compile and install the software.

rc, the Plan 9 Shell

257 questions
3
votes
2 answers

Making an npm script auto start in a FreeBSD Jail

I've installed an npm package / script in a JAIL on FreeNAS 9.10. (FreeBSD based) It works perfectly if I run "npm start" in the directory where the scripts are installed. However, I need this to be auto-starting when the jail starts. I don't know…
bobomoreno
  • 2,848
  • 5
  • 23
  • 42
3
votes
1 answer

Raspberry pi Shutdown using the interrupt method(junk code appears while shutting down)

I am using a momentary push button to shutdown the raspberry pi using the interrupt method and the code for the same is: #Import the modules to send commands to the system and access GPIO pins from subprocess import call import RPi.GPIO as gpio #…
Akshay
  • 463
  • 6
  • 15
3
votes
1 answer

How to generate resource entry of string type ID?

I have a .rc file with the following entry: 01111 my_res { "string 1" } 01113 my_res { "string 2" } 01119 my_res { "string 3" } When I compile this .rc file with rc.exe, the resource entry id become 1111, 1113 and 1119 respectively. Apparently, the…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
3
votes
3 answers

How to add flags to RC.EXE through QMake .pro makefiles

I've the following definition in my .pro file: RC_FILE = app.rc This RC file contains a global include at the top: #include "version_info.h" The version_info.h header is on a common header files directory. Since RC.EXE takes INCLUDE environment…
Hernán
  • 4,527
  • 2
  • 32
  • 47
3
votes
1 answer

update-rc.d vs chkconfig

I have tried to get my head around how to configure the application startups and shutdowns in linux. Can someone explain me what the difference between using update-rc and chkconfig is? Is it two ways of doing the exact same thing?
llundin
  • 383
  • 2
  • 13
3
votes
1 answer

What has replaced the VERSIONINFO resource for C# projects?

C# projects use a .resx file for resources. This is fine for strings, but it does not seem to have the equivilant of the old VERSIONINFO resource that the C++ project .rc files supported. I can not believe that Microsoft has given up the idea of…
R. Hartman
  • 129
  • 1
  • 5
3
votes
1 answer

Can I upgrade from Visual Studio 2012 (11) RC to Final / RTM?

I have noticed that there are a lot of improvements in Visual Studio 11 when it comes to the designer, and I really want to switch to 2012 as fast as possible. The question is - if I download the Release Candidate now, can I then just "reinstall" or…
Ted
  • 19,727
  • 35
  • 96
  • 154
2
votes
1 answer

Value in .h file not defined in .rc file

I'm working on creating build configurations based on a previous question of mine. I've got the Build Configurations created, and I have conditional declarations for the different builds in a file called custom.h. It currently looks like…
g.d.d.c
  • 46,865
  • 9
  • 101
  • 111
2
votes
2 answers

How to modify rc.local in shell script?

I want to add a line(such as '*/data/mod/myservice start some_parameter*'.) to /etc/rc.d/rc.local file in shell script. If there exists a line start with '*/data/mod/myservice start*', then replace it by new one. In my script, it execute the next…
zhouzuan2k
  • 157
  • 2
  • 8
2
votes
2 answers

Parsing resource Visual Studio .rc file with the sed command

How can i use sed for pase .rc file? And I need get from resource file blocks STRINGTABLE ... STRINGTABLE BEGIN IDS_ID101 "String1" IDS_ID102 "String2" END ... and result need output to str_file.h std::map m = { …
AlexZel
  • 83
  • 1
  • 5
2
votes
0 answers

.*shrc and .*profile files after conda installation in mac

After installing anaconda on my macbook I ended up with a bunch of files in my home folder. Some of these were there before but some of these have been created by conda. .bash_profile - created by conda .tcshrc - created by conda .xonshrc - created…
Shrey Joshi
  • 1,066
  • 8
  • 25
2
votes
1 answer

How to filter RCed trait objects vector of specific subtrait in Rust?

The task is to filter out the supertrait objects for base trait object vector: use std::rc::Rc; use std::any::Any; pub trait TraitA { fn get_title(&self) -> &str; fn as_any(&self) -> Any; } pub trait TraitB: TraitA { fn…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
2
votes
1 answer

How to pass parameters in jq to a function defined in the ~/.jq dotfile?

Goal I'm trying to declare functions in my ~/.jq so they can be re-used. I am not sure I've got the correct syntax for passing parameters. I've looked at the builtin.jq source but the recursion flew over my head. Can anyone help clarify if the way…
luckman212
  • 473
  • 1
  • 7
  • 15
2
votes
1 answer

How do you mark specific text on file load with your vimrc?

Problem I use vim and vimwiki and have files that have predictable headings like ## Planning and ## Todo. I want to do something like this in my vimrc: /## Todo mt which will happen on file load if there is a ## Todo in the file. But I'm not…
Ross Jacobs
  • 2,962
  • 1
  • 17
  • 27
2
votes
1 answer

File type association (syntax highlighter) for .rc file

What is the correct file type association for a .rc file in PyCharm? What I Found Syntax highlighter for config files (.cfg, .ini, .rc) Suggests using the Ini plugin, however in my opinion, a .rc file is not a .ini file. My Specific Use Case In my…