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
0
votes
1 answer

Is there an rc file (-like option) for jVi in Netbeans?

I'm using Netbeans 12 with jVi 1.6.5 on Ubuntu Linux 18.04. Every time I open a new source file in an editor window, I must enter the :set nu command manually to enable line numbers in jVi. Is there a way to automate the latter? I can't find…
0
votes
2 answers

refcell rc> doesn't change

Here is my simplified code. I need to change the pdp_state in a function. but the state remain 'a'. I don't figure out why cloning Rc does not work. I also checked this cloning out side a structure an it worked. #[derive(Clone,Copy)] enum…
Farbod PM
  • 122
  • 6
0
votes
1 answer

Unable to execute a python3 script from rc.local

The Python script is unable to work in rc.local, as soon as it nevet gets executed. My idea is to run the script when the Raspberry Pi gets boot. I have tested it with this sentence. The log.txt file only appears when I execute the program…
Guille
  • 11
  • 2
0
votes
0 answers

python- print doesn't show output on console on bootup

I working on openwrt and I want to run a python script on bootup. For this, I have written my script and added it to /etc/rc.local. After bootup, when i do ps xa, I can find the script running but nothing prints on screen. The steps I have followed…
Sourabrt
  • 2,126
  • 2
  • 8
  • 22
0
votes
1 answer

windres cannot find "wx/msw/wx.rc" building wxWidgets project with MSYS2-minGW64 and Codelite

Opening a new questions as some older answer does not apply to my case. As per subject, I cannot compile a basic wxWidgets "Hello, World" program in Windows 10 with CodeLite 14 and wxWidgets 3.1.4 (compiled using MSYS2-mingW64). The error message is…
Federico Perini
  • 1,414
  • 8
  • 13
0
votes
1 answer

sed shell with jenkins deployment

I'm working on something at the moment and just now I even wonder if what I am working on is even possible. I want to SSH from jenkins to a shell script and use variables form a rc file that are in a git Repository. (The Shell script and rc file are…
MewTwo
  • 465
  • 4
  • 14
0
votes
1 answer

How to have a part of `~/.bash_profile execute only on shell open?

I have been searching high and low for this answer, maybe it is a dead-end road I don't know. I am running Ubuntu 20.04 and I currently have this bash_profile: export MAG_DIR="/var/www/html/magento-2" export…
Scott Anderson
  • 631
  • 5
  • 26
0
votes
0 answers

Syntax error when running Winres, trying to set executable icon

When running ([filename] is just a placeholder]) windres -v -i [filename].rc -o [filename].o in the terminal I get the following messages: gcc -E -xc -DRC_INVOKED [filename].rc' Using popen to read preprocessor output windres.exe: [filename].rc:1:…
0
votes
0 answers

Adding startup script to systemd without using systemctl

I am trying to add a startup python script to a Linux OS with systemd, where I have to set the script up from another Linux OS which is init based. | Running OS | | OS to be installed…
0
votes
1 answer

Run apache airflow worker after boot

I tried to setup "airflow worker" to run after system start via rc.local(centos 7). I have installed python and airflow as root. Path is /root/airflow and /root/anaconda3. I added this to rc.local: #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY…
piedro
  • 17
  • 1
  • 4
0
votes
1 answer

How to get to the shell that runs my rc.local script?

I have modified my rc.local script to run some python script at startup. This python script seems to be started successfully. As the script is running forever (intended) and I want to see what the script does, my question is: Is there a way to…
M. Beining
  • 99
  • 1
  • 9
0
votes
0 answers

How to recover accidentally deleted /etc/rc.d file or folder?? What is the impact of deleting them?

I am relatively new to black-screen Os-es (unix/linux) Version: Linux version 2.6.32-642.11.1.el6.x86_64 (mockbuild@x86-027.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) 1 SMP Wed Oct 26 10:25:23 EDT 2016 I was…
Tech User
  • 39
  • 3
0
votes
0 answers

.rc files with preprocessor directives

I´m working on VS2015 with a C++ project containing only one .rc file. I would like to change the content of my .rc file with preprocessor directives. For example, #define freeVersion, set somewhere else in a header file. But for some reasons, when…
Erwan Douaille
  • 553
  • 1
  • 10
  • 31
0
votes
0 answers

Autostart python script with feedback

On a Raspberry Pi I have a script that I want to auto-start on boot. I can get this to work with rc.local but it runs in the background. I want to have feedback from my script so that I know it is running error free at a glance. Can I get…
0
votes
0 answers

Executing selenium scripts on CentOS by providing java-jar command in rc.local file

I am trying to execute selenium scripts on CentOS by providing java-jar command in rc.local file but it throws error as: "Chrome not started, exited abnormally" and the process started from chrome location /usr/bin/google-chrome is no longer…
Varun
  • 1