Search Results

Search: Posts Made By: scriptnewbie
1,029
Posted By scriptnewbie
thanks i think thats what i'm after this is my...
thanks i think thats what i'm after this is my current code in crontab -e i basically have genWebsite.sh which generaters startPage.html:

*/1 * * * * /home3/username/ssh/shellcw/genWebsite.sh >...
1,029
Posted By scriptnewbie
Crontab in script
I have crontab setup via crontab -e

I was wondering if its possible to create a cron job from a script so when the script is run the cron job is created?
810
Posted By scriptnewbie
sorted i had to change the directory in one of my...
sorted i had to change the directory in one of my files
810
Posted By scriptnewbie
Script that automatically generates HTML
hi I have a script with HTML code and am currently generating the html page everytime using genWebsite.sh > startPage.html

Is it possible to have a loop at the begining of the script to run this...
3,140
Posted By scriptnewbie
genWebsite.sh: #!/bin/bash #...
genWebsite.sh:

#!/bin/bash


# make_page - A script to produce an HTML file
cd /Users/guestUser/Desktop/personalisedWebsiteScript/
source ./config.sh



##### Constants


#####...
3,140
Posted By scriptnewbie
it list the file so its definitely there
it list the file so its definitely there
3,140
Posted By scriptnewbie
in the var/mail message from cron this gets rid...
in the var/mail message from cron this gets rid of the No such file or directory for the path but I still get it for:
line 6: ./config.sh: No such file or directory
3,140
Posted By scriptnewbie
in my genWebsite.sh I typed in: source...
in my genWebsite.sh I typed in:

source ./config.sh
cd Users/guestUser/Desktop/scriptFolder/

in crontab - e
i typed

*/1 * * * * /Users/guestUser/Desktop/scriptFolder/genWebsite.sh >...
3,140
Posted By scriptnewbie
I used the pwd command to get the homeDirecotory...
I used the pwd command to get the homeDirecotory to file written structure i then typed this in after cd as suggested but I get a error saying No such file or Directory, should the directory start...
3,140
Posted By scriptnewbie
#!/bin/bash my genWebsite.sh source...
#!/bin/bash

my genWebsite.sh

source ./config.sh


##### Functions

show_uptime()
{
echo "<h2>System Time and Uptime</h2>"
echo "<pre>"
uptime
echo "</pre>"
}

...
3,140
Posted By scriptnewbie
Crontab help
Hi

I am trying to create a cron job but i get an error

I have 2 files my main shell script with html which is genWebsite.sh and another called config.sh which hold variables that I pass to...
5,191
Posted By scriptnewbie
thanks for the replies i figured it out before...
thanks for the replies i figured it out before the replies but I appreciate you help thanks
5,191
Posted By scriptnewbie
I know how to execute the shell scripts, is it...
I know how to execute the shell scripts, is it possible to hold the TZ in a variable as in my above statement as when I echo out the Time variable it only gets the export anything after the space is...
5,191
Posted By scriptnewbie
Changing TZ from a script
Hi i have a case statement so when the user selects a differnent timezone the TZ value should change, so when another script generates a html page the when date is displayed the time corresponds to...
1,590
Posted By scriptnewbie
thanks for the reply I am not sure how to write...
thanks for the reply I am not sure how to write the case statement I have:

this is the config.sh
#!/bin/sh

echo "Enter a city LONDON, TOKYO, MADRID. "
read CityConfig

case $CityConfig in ...
1,590
Posted By scriptnewbie
Case statement help
Hi I am new to shell scripting, I wanted to make a shell script that has a case statement asking the user to select their city 1)london 2)tokyo 3) etc., I then want the users input to be stored in a...
1,753
Posted By scriptnewbie
I basically want to update the variable in...
I basically want to update the variable in another script in the config script and send the amended value on submit to change the city. Would you suggest a different method or would this way work.
...
1,753
Posted By scriptnewbie
Thanks but no luck i tried: In my config.sh...
Thanks but no luck i tried:

In my config.sh file
cityconfig=""
CitySelect="LONDON"



##### Functions
weather_forecast_config()
{

echo "cityconf = $cityconfig"
echo...
1,753
Posted By scriptnewbie
Getting input and changing variable?
Hi I am new to scripting and have a function in my .sh script file that outputs a html radio button form

weather_forecast_config()
{
echo ""
echo "<html><head><title>Welcome</title></head>"...
Showing results 1 to 19 of 19

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