Search Results

Search: Posts Made By: cherryTango
5,134
Posted By cherryTango
When I input gedit Repository.sh into the...
When I input gedit Repository.sh into the terminal it will open the text editor in another window, unless I have already got a file open in gedit by using Applications > Text Editor

When there is...
5,134
Posted By cherryTango
When I attempted this, with identical code except...
When I attempted this, with identical code except I use gedit rather than vi it returned:
gedit Repository.sh & PID=$!; sleep 10; jobs $PID; sleep 10; fg $PID
[1] 24318
[1]+ Done ...
5,134
Posted By cherryTango
adam@adam-VirtualBox:~/Systems$ gedit...
adam@adam-VirtualBox:~/Systems$ gedit Repository.sh
adam@adam-VirtualBox:~/Systems$ echo "File closed."
File closed.


I didn't need to close the file or anything - whereas when I use a...
5,134
Posted By cherryTango
Sorry, I didn't really understand what you meant....
Sorry, I didn't really understand what you meant. When running those commands in the terminal this was the result:
adam@adam-VirtualBox:~/Systems$ gedit ex_03.sh & PID=$!
[1] 23022...
5,134
Posted By cherryTango
Hi again, still struggling with this. All the...
Hi again, still struggling with this. All the solutions I see online seem to be working for everyone else but not me! They always return that the process is active initially and then return that it...
5,134
Posted By cherryTango
So I've got a program that allows the user to...
So I've got a program that allows the user to edit a file either in gedit or using vim. I want a log to update only once the user has finished editing the file. Figured easiest way to do this would...
5,134
Posted By cherryTango
Hi guys! Thanks for replying, I tried both: ...
Hi guys! Thanks for replying, I tried both:
xdg-open "$1"
PID="$!"
while :
do
if ps -p $PID >/dev/null;
# Rest of code..

I also tried:
xdg-open "$1"
...
5,134
Posted By cherryTango
How to check if a file is open in editor?
Hi there! I'm developing a program that allows the user to open and edit files using both an editor and the terminal. Once the user has finished editing the file an update is sent to the logbook that...
5,080
Posted By cherryTango
After making the changes you suggested to my...
After making the changes you suggested to my program the first error I recieved was:
Makefile:2: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.
This was because I copy and...
5,080
Posted By cherryTango
Okay, so after playing around with it I have...
Okay, so after playing around with it I have changed the way the Makefile is created to:
populateMFiles () {
echo '
clean:
rm -rf cfile.out
build:
gcc -g -Wall -pedantic -Wextra...
5,080
Posted By cherryTango
Running the populateMFiles | od -c returned: ...
Running the populateMFiles | od -c returned:
0000000 c l e a n : \n r m - r
0000020 f c f i l e . o u t \n b u i l
0000040...
5,080
Posted By cherryTango
They are all tab characters. Still returning same...
They are all tab characters. Still returning same error message. Also have changed the Makefile so that 'clean' does not remove the cfile.c before it is compiled:
clean:
rm -rf cfile.out...
5,080
Posted By cherryTango
With the code altered to read: # Populate...
With the code altered to read:
# Populate makefile with example code
populateMFiles () {
echo 'clean:
rm -rf cfile.c cfile.out
build:
gcc -g -Wall -pedantic -Wextra cfile.c -w -o...
5,080
Posted By cherryTango
Help running a Makefile from within a .sh script?
Hi there! I am a undergraduate student and recently submitted an assignment for my coursework - however there was one function I could not get to work properly before the due date. Although I don't...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 03:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy