Simutaneous run of Compact and Updall

hello, i have a database which has a scheduled agent. i’d like to make this agent run COMPACT and UPDALL ITSELF using SendConsoleCommand of session object as followings :

load compact thedatabase.nsf

load updall thedatabase.nsf -R -X

i want to know if there is any problem. or is it not good to run them simultaneously? domino version is R6.0.1, by the way. any help welcomed. thanks.